Re: JESS: Retrieving slot and multislot values

"Wolfgang Laun" <[email protected]>
Newsgroups gmane.comp.java.jess
Message-ID <10057_1284569775_o8FGpo5M010465_AANLkTi=URZ8os+7nM5ftQY-ck0ihw9-vRQ8sDYCTdy_M@mail.gmail.com>
On 15 September 2010 17:17, Donald Winston <[email protected]> wrote:

> engine.getGlobalContext() ??
> I thought this was just for global variables.
>
> It's for defglobals and variables bound at the outermost level.

But Jess is subject to scoping, where an "inner" scope may introduce an name
not know globally, or reuse a name from an outer scope by binding it to
another value.

You won't need to use Contexts other than that getGlobalContext() unless you
are into Event handling or sophisitcated exception handling.

-W
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.