@ list splicing bug?
From: Adam Warner (usenet_at_consulting.net.nz)
Date: 11/26/03
- Previous message: Michael Sullivan: "Re: (sqrt (factorial 100))"
- Next in thread: Kent M Pitman: "Re: @ list splicing bug?"
- Reply: Kent M Pitman: "Re: @ list splicing bug?"
- Reply: Peter Seibel: "Re: @ list splicing bug?"
- Reply: james anderson: "Re: @ list splicing bug?"
- Reply: Kaz Kylheku: "Re: @ list splicing bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 Nov 2003 15:24:45 +1300
Hi all,
Should the evaluation of:
``(,',@(loop for arg in '(a b c) collect `(cons ',arg ,arg)))
Be:
'((cons 'a a) (cons 'b b) (cons 'c c))
CMUCL and SBCL return `((cons 'a a)).
I've distilled this example from one of the macros I have written that has
returned unexpected results. Before reporting this bug I just want to
check that my example is portably defined ANSI Common Lisp code and the
result CMUCL and SBCL returns is not conforming.
Thanks,
Adam
- Previous message: Michael Sullivan: "Re: (sqrt (factorial 100))"
- Next in thread: Kent M Pitman: "Re: @ list splicing bug?"
- Reply: Kent M Pitman: "Re: @ list splicing bug?"
- Reply: Peter Seibel: "Re: @ list splicing bug?"
- Reply: james anderson: "Re: @ list splicing bug?"
- Reply: Kaz Kylheku: "Re: @ list splicing bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|