I want to assign an object to a reg variable, but I don't know if I could do it, and if yes, how can I do it, what is the syntax?
For example,
I have a class Var
:
class Var {
constructor {Name values order} {} {
set mName $Name
set mValues $values
set mOrder $order
}
destructor {
}
public method GetName {} {
return $mName
}
public variable mOrder
public variable mName
public variable mValues
}
and an object:
Var::var_
Can I assign an object var to the reg variable?
Something like that:
reg set var/var_ Var::var_