This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]