Index: doc/migration1-2.html =================================================================== diff -u --- doc/migration1-2.html (revision 0) +++ doc/migration1-2.html (revision 68a446ad7ec32cbca27d0715cd58f264c1df3dde) @@ -0,0 +1,199 @@ + +
++... 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::instvar -object someObject newVar |
+
someObject exists varname |
+ ... do we have to keep exists for this reason? ... |
+