[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] OTCL DOUBT !!!



HI 

can anyone pls tell me this doubt about the functioning of otcl

Suppose there is a method in a class.
You define some instance variable in the method.
Then you set the local variables to be instance variable
    $ set <local var> <instance var>

Now my question is that now if you set the value of local variable to
be, say X, then would the value of instance variable be X too
automatically.

to put it formally 
in the statement  
	$ set <local var> <instance var>
is the pasing from right to left is "by value" or "by reference " 

Thanks
Amit