Hi!
I work currently with 1.3.2 and have one problem that relate to namespace handling. I would need new object method that could return full name of object (similar to "namespace origin" command)
I could not find any possibility to get it from build-in Object methods. I would expect that "self" or "my" on object would work.
So I must programm new global Object instproc:
Object instproc fullname {} { self }
so it work
Object a a fullname
::a
Is were any better possibility to get the same result? If not it could be idee to extend object base interface (for example info command)
Artur Trzewik
Hi Artur,
if you invoke the object command (==ID) without any arguments, it returns the fully qualified name:
Object a puts [a]
-> ::a
Uwe
mail@xdobry.de wrote:
Hi!
I work currently with 1.3.2 and have one problem that relate to namespace handling. I would need new object method that could return full name of object (similar to "namespace origin" command)
I could not find any possibility to get it from build-in Object methods. I would expect that "self" or "my" on object would work.
So I must programm new global Object instproc:
Object instproc fullname {} { self }
so it work
Object a a fullname
::a
Is were any better possibility to get the same result? If not it could be idee to extend object base interface (for example info command)
Artur Trzewik _______________________________________________ Xotcl mailing list Xotcl@alice.wu-wien.ac.at http://alice.wu-wien.ac.at/mailman/listinfo/xotcl