This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
or evaluates second argument if first is true?
- From: Khairul Azhar <kazar1my at yahoo dot co dot uk>
- To: kawa at sources dot redhat dot com
- Date: Mon, 30 Sep 2002 02:23:17 +0100 (BST)
- Subject: or evaluates second argument if first is true?
I've been trying to do the following for my top-level ala Python: -
(if (or (not (environment-bound? (interaction-environment) '__main__))
__main__)
(display "Executing main procedure"))
Boom! I get an UnboundSymbol exception (which, incidentally, is triggered
on the (if...) line) for __main__. Apparently, or evaluates the second
argument, even though the first one is true.
The questions are: Should this work? Will this work? Or should I go about
this some other way e.g. using define-variable perhaps?
I'm using the kawa 1.6.99 compiler.
=====
Khairul Azhar
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com