Re: Local / lazy referencing

Adam Megacz <[email protected]> 08 Oct 2003 16:49:13 -0700
Newsgroups gmane.comp.java.xwt.widgets
Organization XWT
Message-ID <[email protected]>
Nope -- if you didn't declare it with 'var', you can only reference it
via thisbox.

  - a

Charles Goodwin <[email protected]> writes:
> Adam Megacz wrote:
> > thisbox.foo = 5; // public
> > foo = 5;         // illegal
> > var foo = 5;     // private
> 
> I just want to check, this is just for declaring them, right?
> 
> I mean... for sanities sake, we have to be able to do the following:
> 
> thisbox.foo;
> thisbox.bar = 5;
> 
> foo = bar * 2;
> 
> - Charlie
> 
> 
> _______________________________________________
> widgets mailing list
> [email protected]
> http://lists.xwt.org/listinfo/widgets
> 

-- 
"Education is not filling a bucket but lighting a fire." -- WB Yeats