... 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 |
someObject eval [list set .varname value] |
set newVar [someObject set otherVar] |
set newVar [someObject eval {set .otherVar}] |
someObject instvar newVar
|
::xotcl::importvar someObject newVar |
someObject exists varname |
someObject eval {info exists .varname} |
XOTcl 1 | XOTcl 2 |
---|---|
objectName check checkptions |
::xotcl::assertion objectName check checkptions |
objectName info check |
::xotcl::assertion objectName check |
objectName invar conditions |
::xotcl::assertion objectName object-invar conditions |
objectName info invar |
::xotcl::assertion objectName object-invar |
className instinvar conditions |
::xotcl::assertion className class-invar conditions |
className info instinvar |
::xotcl::assertion className class-invar |
className invar conditions |
::xotcl::assertion className object-invar conditions |
className info invar |
::xotcl::assertion className object-invar |