Monday, June 21, 2010

Scoping questions:
--->There's an issue with whether variables are going to be looked-up/written to local objects or global. For instance:

class ()
x = 3;
function mFunc()
x=2; //local x, or class's x

Another way of doing things is to have self.x/this.x be for global. Javascript gives var for local. Do we just want to force using var?

No comments:

Post a Comment