On Jun 19, 8:15 pm, helge <[EMAIL PROTECTED]> wrote: > Which makes me wonder why I do not simply clone a scope :-) Something > like this: > 1. sharedScope = new ImporterTopLevel() > 2. script.exec(sharedScope) // imports Java packages, defines > functions & variables, etc > then > 3. instanceScope1 = sharedScope.clone() > 4. instanceScope2 = sharedScope.clone() > etc
To answer myself and for the record: ScriptableObject and subclasses do not implement clone(). Would be nice to have :-) Helge -- http://helgehess.eu/ _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
