[Xotcl] XOTcl: Introspection bug (?) and Dynamic Object Aggregation consideration

Attilio Dona` attilio.dona at telecomitalia.it
Fri Apr 30 15:05:20 CEST 2004


Hy,

In 1 I report an introspection bug, in 2 an ahestetic bug and in 3 a 
personal consideration about a possible XOTcl improvement.

1. Introspection: "info methods" duplicated entry

In the following I report e test case that shows the problem:

Class MetaClass1 -superclass Class -parameter {{a "v1"} {b ""}}
Class MetaClass2 -superclass MetaClass1 -parameter {{a "v2"} {c ""}}

MetaClass1 Class1
MetaClass2 Class2

lsort [Class2 info methods]
result: __next a a abstract ....
expected: __next a abstract ....

Class2 info methods a
result:a a 
expected: a


2. Usage string

Object n
n info children -class Interface
wrong # args: should be {::n info children ?pat?}

I expect:
wrong # args: should be {::n info children}

or there is somethig missing in the language reference documentation?

3. Dynamic Object aggregation improvement issues

I think would be useful, especially for performance reasons, that 
dynamic object aggregation have more introspection functionalities at 
core language level:
for example at the info children command could be added options that 
returns children filtered by children class (and object names and  ... ?)

More in general,an useful feature could be returning all children that 
match some assertions (something like an invariant list)


Attilio




--------------------------------------------------------------------

CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to webmaster at telecomitalia.it.

        Thank you

                                        www.telecomitalia.it

--------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20040430/362f47f0/attachment.html


More information about the Xotcl mailing list