Hi all.  Latest problem, running jess4.4...

(try
    (get-var *foo*)
 catch
    (defglobal ?*foo* = moo))

This should define the global ?*foo* to moo, because get-var throws an
unbound variable exception.  But it seems that the system doesn't like
the defglobal in the catch part of a try-catch block.

On a related note, what I am trying to do is set up some sort of include
guard.  When a file is loaded I want to do something like:

If this file has never been loaded before,
    do this stuff.
Otherwise
    Do nothing.


I was planning on doing it with that try-catch block, since I couldn't
poke a variable to see if it is bound any other way (maybe a predicate
like boundp would be in order.)

Anyway, any tips / workarounds would be appreciated.

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to