22/09/2009

Undeclared variables are global in GWT

Yes, I know this is a statement of the obvious - particularly given that it is really javascript that is executing, but I found it interesting nonetheless.

I was looking at the startup method Object >> helloWorld, when I suddenly realised that a number of the variables - that were holding windows - were not declared in the method. I opened a workspace and tried sending them messages. Sure enough, it worked.

I am gradually beginning to work out how to play with the system :-)

2 comments:

pfisk said...

This is a bug - not a feature.

-- peter

Andy Burnett said...

Thanks, I have just logged it in the database