Re: typeof
David Crawshaw <[email protected]> Sat, 5 Apr 2003 08:12:01 +1000
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
On Saturday, April 5, 2003, at 05:42 AM, Rod Martin wrote: > Atm, typeof(somebox) simply returns 'object', which makes sense > because boxes > are objects. Is there another command I could be using, or could > typeof be > overridden (is that even a word?) to implement something like this? I asked for more introspection a long time ago, but we never formalised how to do it. We need a function to test if a template has been applied to a box, at the very least. You could have a function on Box called applied(templatename) that returns a boolean, but I suppose the word is a little too close to apply(). Give me a name, and I'll try and write a patch. d _______________________________________________ http://lists.xwt.org/listinfo/dev