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

[Xotcl] info instances for mixins

From: Ben Thomasson <ben.thomasson_at_gmail.com>
Date: Fri, 15 Jul 2005 14:58:28 -0400

Hi,

I am looking for functionality similar to Class info instances for mixins
and instmixins.

Essentially I'd like:

>xotclsh
% Class A
::A
% A a
::a
% A info instances
::a
% Class B
::B
% A instmixin B
% B info instances

This last line to return.
::a

Is this possible with any info proc that exists today or could something
like this be easily added to the
code?

I am trying to simplify searches on a large object graph by using mixins. I
already use introspection to find instances of certain classes. I would like
to be able to do the same with mixin classes. Is the mixin functionality
implemented with object->class pointers. Are there pointers mixin->object or
mixin->class->object?

Thanks,

Ben