[Xotcl] Mixins in XOTcl
schlenk at uni-oldenburg.de
Wed May 19 17:37:24 CEST 2004
Neil Madden wrote:
> Just a random thought, not totally paying attention to this thread:
> Is there a reason why the filter/mixin lists could not just be normal
> object/class variables? Seems XOTcl already has plenty of flexibility
> to deal with these. E.g.:
> instead of:
> Object mixin ....
> Object set mixins [list ... ]
> or something like that (not completely familiar with the current
> syntax). The old methods could be setup to just be wrappers around
> these new variables. Or is there some reason why these lists are
> treated specially?
mixins and filters are no variables.
Its similar in tcl, where you have [info commands] and not a magic
$commands variable as you might have in other languages.
Using traces it should be possible to provide such an interface if
anyone really wants it.
More information about the Xotcl