Not sure whether this is a bug or working as designed (if so, perhaps it should 
get documented).

When using the "::requires" directive, a resolved package will get re-used 
(only at the very first
"::requires" will a call without arguments be carried out by the interpreter).

In an environment where multiple Rexx interpreter instances are employed, I 
would have expected,
that required Rexx packages get re-created from scratch upon when they are 
required the first time
in a new interpreter instance (e.g. so class or routine objects are distinct 
per Rexx intepreter
instance). In essence expecting that this gets "scoped" per interpreter 
instance like ".local"
(which gets created for each interpreter instance).

Further analysis shows, that the prolog code of required packages gets run on 
each new interpreter
instance, without re-creating the package separately for each interpreter 
instance. This may
indicate that this behavior is intended. If so, it should get documented with 
the ::requires
directive (or with the native RexxCreateInterpreter()-API).

---rony



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to