[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do-nothing macro generates nil nevertheless

In article <vogtD4n872.7Bt@netcom.com> vogt@netcom.com (Christopher J. Vogt) writes:

   >A macro's job is to return a list to be compiled.

   Try (listp nil).  It returns T, nil is a list.
   Try (length nil).  It returns 0, nil is a list of length 0.
   Try (values).  it doesn't return anything!  And I'll bet you
   thought that everything in lisp returns a value.  Hah!

Actually, several things in Lisp don't return a value.  For instance,

-- Harley

Harley Davis                            net: davis@ilog.fr
ILOG S.A.                               tel: +33 1 46 63 66 66
2 Avenue Galliini, BP 85                fax: +33 1 46 63 15 82
94253 Gentilly Cedex, France            url: http://www.ilog.com/

           Ilog Talk information: info@ilog.com