Re: Local / lazy referencing
Charles Goodwin <[email protected]> Tue, 07 Oct 2003 13:26:24 +0100
| Newsgroups | gmane.comp.java.xwt.widgets |
|---|---|
| Organization | XWT Foundation |
| Message-ID | <[email protected]> |
Charles Goodwin wrote: >> var variables are private to the script that declares them, but we no >> longer have a way of declaring "package-private" stuff. The new >> resource system makes this challenging. Lemme know if you have any >> suggestions. > > [some poo] Ah. I was talking out of the preverbial ... before. Variables are private to the 'resource' that declares them? What exactly is the scope of a var variable? It's not just the template in which it occurs. So it's effectively public, right? We don't have private vars, right? So, going back to that, 'private var x' might be an option. I guess it depends on the ECMAscript standard. - Charlie