Hello Shafiq

that kind of statetement is usually used to get the value of a class
parameter and not to assigne a value to a variable:
for example ->
proc output_link-statistics { qmon link } {
    puts "Link statistics $link :"
    puts "Packets:\tparrivals_=[$qmon set parrivals_],\tpdepartures_=[$qmon
set pdepartures_],\tpdrops_=[$qmon set pdrops_]"
    puts "Bytes:\t\tbarrivals_=[$qmon set barrivals_],\tbdepartures_=[$qmon
set bdepartures_],\tbdrops_=[$qmon set bdrops_]"
}

in this example the values of the class parameters  parrivals_,
pdepartures_, etc of the instance of class qmon (a queue monitor) are read.

Regards,

Gilles

2006/3/17, Shafiq Hashmi <[EMAIL PROTECTED]>:
>
>
> Hello all,
>
> I am always confused with this assignment statement
>
> [[$self agent] set node_ ]
>
> What does it exaclty means? What value it is assigning to which variable
> ??
> Here 'agent' is a shadow instance, created in OTcl space, of an object in
> C++.
>
> Can somebody help me understanding it. There are hundreds of statements
> like
> this in Leach code that I am unable to comprehend.
>
> Thanx
> Shafiq
>
>
>


--
Mit freundlichen Grüßen, with kind regards, cordialement,

----------------------------------------------------------
Gilles BERTRAND
Telecom INT - University of Stuttgart
----------------------------------------------------------

Reply via email to