зеркало из https://github.com/mozilla/pjs.git
09771a8b39
[Rhino] importPackage() when not in Rhino shell? Date: Tue, 14 Nov 2000 09:37:39 -0000 From: "Benjamin Geer" <geerb@midas-kapiti.com> Organization: Another Netscape Collabra Server User Newsgroups: netscape.public.mozilla.jseng The importPackage() and importClass() functions provided by the Rhino shell seems as if they would be very generally useful. Unless I've missed something, they don't seem to be available to scripts compiled using the JavaScript compiler, or to scripts that are run using Script.exec(). Is there any chance these functions could be made available for all scripts to use? This would save a lot of typing; one could then always write a = new Foo() instead of a = new Package.com.baz.bar.foo.Foo(). --Benjamin Geer |
||
---|---|---|
.. | ||
benchmarks | ||
js2 | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
semantics | ||
src | ||
tests | ||
.cvsignore | ||
Makefile.in | ||
landbranch.pl | ||
makefile.win |