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

Re: [Xotcl] getting full name object

From: Uwe Zdun <uwe.zdun_at_wu-wien.ac.at>
Date: Thu, 21 Oct 2004 14:17:53 +0200

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