SV: strange macro "or" behavior in CormanLisp2.01
"Pavel Grozman" <[email protected]>
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <[email protected]> |
CormanLisp tries to evaluate constant subexpressions. Without constants it works as it should: (setq x 0) 0 (or 13 (/ 1 x)) 13 Pavel Grozman > 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/ > > > > To unsubscribe from this group, send an email to: > [email protected] > > > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/LIgTpC/vN2EAA/xGHJAA/SyjtlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/