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] |
No, or does do "short circuit" evaluation. Khairul Azhar wrote:
That is because (environment-bound? (interaction-environment) '__main__) is returning #t even though evaluating __main__ results in Unbound Symbol.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__.
Don't know. There must be something special about __main__, since foo works as expected.The questions are: Should this work? Will this work? Or should I go about this some other way e.g. using define-variable perhaps?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |