View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] Mixins in XOTcl

From: Michael Schlenker <schlenk_at_uni-oldenburg.de>
Date: Wed, 19 May 2004 17:37:24 +0200

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 ....
>
> do:
>
> 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.

Michael