Re: (or 0 t) ?

"smallhairytroll" <[email protected]> Sat, 31 May 2003 01:08:07 -0000
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
--- In [email protected], "smallhairytroll" <lcluke@h...> 
wrote:
> Isn't (or 0 t) supposed to return t ? It returns 0 with me.

I see this has been covered earlier...

[JP Massar] [QUOTE]

Corman is not doing evaluation. Corman always
compiles everything, even things you type into it interactively.

So the Corman compiler is walking over the form (/ 1 0), noticing 
that
it is composed completely of constant forms, and trying
to collapse the expression into a single value, much as it would
collapse (+ 1 1) at compile time into '2'.

But it doesn't currently test whether its attempt to collapse the
expression succeeds or fails; if the expression it is collapsing
causes an error, that error is allowed to be signalled at compile
time.

{/QUOTE]

Would an attempt to evaluate t fail ?

-Luke


------------------------ Yahoo! Groups Sponsor ---------------------~-->
FREE Cell Phones with up to $400 Cash Back!
http://us.click.yahoo.com/_bBUKB/vYxFAA/ySSFAA/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/