... multiple object systems ....
::xotcl::use xotcl1
::xotcl::use xotcl2
describe, what ::xotcl::use
does
XOTcl 1 | XOTcl 2 |
---|---|
Class ClassName |
Class create ClassName |
Object ObjectName |
Object create ObjectName |
::xotcl::Class ClassName |
::xotcl2::Class create ClassName |
::xotcl::Object ObjectName |
::xotcl2::Object create ObjectName |
XOTcl 1 | XOTcl 2 |
---|---|
Class C |
Class create C { Class create C |
Object o |
Object create o { Object create o |
XOTcl 1 | XOTcl 2 |
---|---|
Class C |
Class create C { |
XOTcl 1 | XOTcl 2 |
---|---|
my set varname value |
set .varname value |
set newVar [my set otherVar] |
set newVar [set .otherVar] set newVar ${.otherVar} |
my instvar newVar
|
set .newVar value |
my exists varname |
info .varname |
XOTcl 1 | XOTcl 2 |
---|---|
someObject set varname value |
... |
set newVar [someObject set otherVar] |
set newVar [...] |
someObject instvar newVar
|
::xotcl::importvar someObject newVar |
someObject exists varname |
... do we have to keep exists for this reason? ... |