[Xotcl] getting full name object

Uwe Zdun uwe.zdun at wu-wien.ac.at
Thu Oct 21 14:17:53 CEST 2004


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 at 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 at alice.wu-wien.ac.at
>http://alice.wu-wien.ac.at/mailman/listinfo/xotcl
>  
>

-- 
Uwe Zdun
Department of Information Systems, Vienna University of Economics
Phone: +43 1 313 36 4796, Fax: +43 1 313 36 746
zdun at acm.org, uwe.zdun at wu-wien.ac.at



More information about the Xotcl mailing list