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
_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to