Import required?
Harri Porten
porten at kde.org
Sun Apr 8 09:04:46 PDT 2007
Hello,
reading the description of the "import" directive
"An ImportDirective causes the simple and fully qualified names of one
or more public definitions of the specified package to be introduced
into the current package."
I am wondering whether "import" is required to access definitions inside a
package. After all, the symbols can otherwise be accessed directly as
shown by the cited in the Package section:
package P {
function f() {}
}
P.f()
If "import" is required I suggest to make this "loading" aspect a bit
clearer in the text. Actually, I am wondering whether there is a way to
just just load a package without polluting the current namespace. A bit
like "use" vs. "require" in Perl.
Harri.
More information about the Es4-discuss
mailing list