[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tcl problem
> You can certainly print out the object id (terminology?) if you know the
> variable name, but I don't know if it's possible to determine the variable
> name from the object id.
>
> For example, if you do
> set sink [new Agent/TCPSink]
> puts "$sink"
>
> you can find the object id (_o??) of the object that sink points to. I
> would guess that, in principle, it's impossible to go the other way. For
> example, I could do
> set sink2 $sink
> so how would the reverse mapping know whether to print sink or sink2?
That's what i thought, but there could have been
a way to print the datas related to the (_o??) id
as the size should be known by the tcl interpreter,
maybe it would have helped me to find the type of the object.
Thanks you very much,
--
Vera Mickael Stagiaire