logo       

strange macro "or" behavior in CormanLisp2.01: msg#00022

lisp.corman

Subject: strange macro "or" behavior in CormanLisp2.01

Hi, Corman Lisp Gurus,

I've noticed the following when I was doing a excercise in
Paul Graham's ANSI Common Lisp:

[Corman Common Lisp 2.01]
(or 13 (/ 1 0))
;;; An error occurred in function /:
;;; Error: Divide by zero error: 1 / 0
----snip----

[Allegro Common Lisp 6.2]
CL-USER(1): (or 13 (/ 1 0))
13
CL-USER(2):

Macro OR should evaluate each form, one at a time, from left to right.
I think that Corman Lisp generates bad result.

_________________________________________________________________
ネットを使うひとに有利な特典いっぱい MSN カード http://card.msn.co.jp/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
New Yahoo! Mail Plus. More flexibility. More control. More power.
Get POP access, more storage, more filters, and more.
http://us.click.yahoo.com/Hcb0iA/P.iFAA/46VHAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
cormanlisp-unsubscribe@xxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise