[gambit-list] strange results using values

Joel J. Adamson <adamsonj@email.unc.edu> adamsonj at email.unc.edu
Sun Sep 21 21:23:53 EDT 2008


>>>>> "Arthur" == Arthur Smyles <atsmyles at earthlink.net> writes:

    Arthur> (if (values #f) #t #f)

    Arthur> => #f

    Arthur> (if (values #f #f) #t #f)

    Arthur> => #t

    Arthur> I was surprised to discover this.

I look at it this way: only #f is false; (values #f) => #f is false,
whereas (values #f #f) is something that is not #f, and therefore true
;)  Seems simple, but I'm always having to remind myself that it works
that way.

Joel    

-- 
Joel J. Adamson
University of North Carolina at Chapel Hill
CB #3280, Coker Hall
Chapel Hill, NC 27599-3280

Before you reply to this email, please read
http://www.unc.edu/~adamsonj/email-howto.html



More information about the Gambit-list mailing list