Re: Local / lazy referencing
Adam Megacz <[email protected]> 08 Oct 2003 16:49:58 -0700
| Newsgroups | gmane.comp.java.xwt.widgets |
|---|---|
| Organization | XWT |
| Message-ID | <[email protected]> |
The problem with this is that some other box can set yourbox.org = blah; Now when you run code on your box that does stuff like this: xwt.apply(org.xwt.foo.bar); It's going to break. - a "Brian Alliet" <[email protected]> writes: > Charles Goodwin said: > > I mean... for sanities sake, we have to be able to do the following: > > > > thisbox.foo; > > thisbox.bar = 5; > > > > foo = bar * 2; > > Nope, you can't. You have to use thisbox.foo = thisbox.bar * 2. You can > just type "width", "height", and any other special box property though. > > I don't really agree with this either. I'd rather be able to do foo = bar > * 2. My original declare before use patches allowed this but requiring > thisbox.foo simplifies the code in the core a bit. > > -Brian > > > _______________________________________________ > widgets mailing list > [email protected] > http://lists.xwt.org/listinfo/widgets > -- "Education is not filling a bucket but lighting a fire." -- WB Yeats