Subject: Re: NIL is not of type CONS
From: rpw3@rpw3.org (Rob Warnock)
Date: Thu, 20 Dec 2007 22:55:06 -0600
Newsgroups: comp.lang.lisp
Message-ID: <1KKdnceRBri32vbanZ2dnUVZ_hmtnZ2d@speakeasy.net>
Ron Garret  <ron@flownet.com> wrote:
+---------------
| "Thomas F. Burdick" <tburd...@gmail.com> wrote:
| > Mapcar and friends *don't* have to signal an error when given an
| > improper list
| 
| Maybe not, but I've never encountered a CL implementation that didn't.
+---------------

Let me introduce you to one:

    $ cmucl
    ...[chatter]...
    cmucl> (mapcar #'+ '(1 2 3) '#1=(100 . #1#) '(10 20 30 40 . 50))

    (111 122 133)
    cmucl> 

And another:

    $ clisp -q
    [1]> (mapcar #'+ '(1 2 3) '#1=(100 . #1#) '(10 20 30 40 . 50))
    (111 122 133)
    [2]> 

And another:

    $ telnet prompt.franz.com
    ...[chatter]...
    This development copy of Allegro CL is licensed to:
       QA
    ...[chatter]...
    CL-USER(1): (mapcar #'+ '(1 2 3) '#1=(100 . #1#) '(10 20 30 40 . 50))
    (111 122 133)
    CL-USER(2): 

Now you've encountered three!!  ;-}


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607