Daniel A. Steffen wrote:
> How do I create a metaclass destructor though (without going through the > root oo::object destructor as in my example)? wouldn't I need > self.destructor? (or maybe I'm getting (meta)confused given the hour ;-)
oo::class create metaclass {
superclass oo::class
destructor { ... }
}
metaclass create ordinaryclass {
...
}
ordinaryclass create instance
> this appears to be triggered by the fact that L is a subclass of the > class to be mixed into (i.e. oo::object).> maybe mixing into oo::object needs to be made an exception for the > TclOOIsReachable() check in TclOODefineMixinObjCmd()?
Umm, yes. Chalk that one up as a bug. Please file an issue report so I
remember to fix it. :-)
> when mixing L into oo:class instead, the mixed-in destructor did not get > called at class destruction, is it not possible to mixin destructors?
Not at the moment. Are you arguing that that's a bug? (I can fix it if
you are... :-))
Donal.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core