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

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

From: Attilio Dona` <attilio.dona_at_telecomitalia.it>
Date: Fri, 30 Apr 2004 15:05:20 +0200

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

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