Index: doc/migration1-2.html
===================================================================
diff -u -r6a4a79d6ff336d4961217c161f4f5983966d91a6 -r734813e4825bba23aed9d8a689e670c4ca93a818
--- doc/migration1-2.html (.../migration1-2.html) (revision 6a4a79d6ff336d4961217c161f4f5983966d91a6)
+++ doc/migration1-2.html (.../migration1-2.html) (revision 734813e4825bba23aed9d8a689e670c4ca93a818)
@@ -151,13 +151,13 @@
C object method bar args {...}
-
Object o
o set x 1
o proc foo args {...}
Object create o {
set :x 1
@@ -169,7 +169,72 @@
o eval {set :x 1}
Class C
+ C instproc foo args {...}
+ C proc bar args {...}
+
+ Class create C {
+ :method foo1 args {...}
+ :public method foo2 args {...}
+ :protected method foo3 args {...}
+ :object method bar1 args {...}
+ :protected object method bar2 args {...}
+ :public object method bar3 args {...}
+ }
+
Class C
+ C instforward f1 ...
+ C proc of1 ...
+
+ Class create C {
+ :forward f1 ...
+ :public forward f2 ...
+ :protected forward f3 ...
+ :object forward of1 ...
+ :public object forward of2 ...
+ :protected object forward of3 ...
+ }
+
Class C
+ C instparametercmd s1 ...
+ C parametercmd os1 ...
+
+ Class create C {
+ :setter s1 ... {...}
+ :public setter s2 ...
+ :protected setter s3 ...
+ :object setter os1 ... {...}
+ :public object setter os2 ...
+ :protected object setter os3 ...
+ }
+
+ # TODO: same for "alias" und "attribute" --
+ mybe more generic, with placeholder for "method", "forward",
+ "setter", "alias" and "attribute"
+
+ XOTcl | Next Scripting Language |
---|---|