Are global functions declared with block or global scope. ie. declared 
in the block object or var object?

Consider:

package {
    {
        function fun() {
            print("1");
        }
        fun()
    }
    {
        function fun() {
            print("2")
        }
        fun()
    }
}


This prints

2
2

in the RI.

So should functions be treated like var declarations or as let 
declarations. Seems like they are like vars in the RI.

Is this right?

Michael O'Brien

_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to