GNU bug report logs - #3752
23.0.95; I can not understant a sentence in Intro to Emacs Lisp .

Previous Next

Package: emacs;

Reported by: waterloo <waterloo2005 <at> gmail.com>

Date: Sat, 4 Jul 2009 13:05:04 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: waterloo <waterloo2005 <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 3752 <at> debbugs.gnu.org
Subject: bug#3752: 23.0.95; I can not understant a sentence in Intro to  Emacs Lisp .
Date: Sun, 5 Jul 2009 10:47:06 +0800
[Message part 1 (text/plain, inline)]
when test of while is nil , it does not run `print' following it.
who  does print nil ?

or  if all function will print its return value ?

thanks

2009/7/5 Glenn Morris <rgm <at> gnu.org>

>
> [Please use "reply to all".]
>
> waterloo wrote (on Sun, 5 Jul 2009 at 10:13 +0800):
>
> > yes,it is clearer . thanks
> >
> > In 11.1.2 An Example:`print-elements-of-list', I can not understand why
> > there is a `nil' in the context .
>
> This is explained at the end of the section:
>
>  Since the last expression in the function is the `while' loop, and
>  since `while' loops always return `nil', a `nil' is printed after the
>  last element of the list.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 15 years and 316 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.