Another namespace question
Michael O'Brien
mob at mbedthis.com
Wed Dec 12 15:41:25 PST 2007
Where can you put a "use namespace" directive ?
The RI seems to insist that it only be at the top of a package:
See:
package {
namespace blue
}
package {
use namespace blue // OK here
var y
use namespace blue // Fails here
blue var x = 1
print(x)
}
Could not a "use namespace" directive be anywhere in a block and then
apply to that entire block scope. Just like
a variable declaration. If so, then what happens if multiple use
namespace directives exist in a single block scope?
Michael
More information about the Es4-discuss
mailing list