Re: fill and strings
Charles Goodwin <[email protected]>
| Newsgroups | gmane.comp.java.xwt.core |
|---|---|
| Organization | XWT Foundation |
| Message-ID | <[email protected]> |
On Fri, 2004-03-05 at 22:10, Brian Alliet wrote: > Keep in mind the 'foo.bar' syntax is just short for 'foo["bar"]'. > 'foo.bar.baz.quux' is just 'foo["bar"]["baz"]["quux"]'. Do you think that, for fill (and whatever properties take resources although I can't think of any at the moment) should accept ".foo.bar.baz.quuz" as a string and do the automatic breakdown of it? It'd be a big plus for convenience and for consistency. I mean, people will see a) and try b) all the time: a) <ui:box fill=".foo.bar.img" /> b) fill = ".foo.bar.img" or fill = ".foo.bar." + v; It is quite easy to differentiate between a color and a resource given the starting '.' so, other than the argument that "it can be done outside of the core" there is no reason it couldn't be done. -- - Charlie Charles Goodwin <[email protected]> Online @ http://www.charlietech.com