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 {...}
- # Define object method and set instance variable
+ # Define object method and set instance variable
# in the init-block of an object


Object create o {
  set :x 1
@@ -169,7 +169,72 @@ o eval {set :x 1}

o method foo args {...}
+ + + # method modifiers "object", "public" and + "protected"
# are not available.


+ Class C
+ C instproc foo args {...}
+ C proc bar args {...}
+
+ + + # Define scripted methods with various method modifiers

+ 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 {...}
+ }
+
+ + # method modifiers "object", "public" and + "protected"
# are not available.


+ Class C
+ C instforward f1 ...
+ C proc of1 ...
+
+ + + # Define forwarder with various method modifiers

+ Class create C {
+   :forward f1 ...
+   :public forward f2 ...
+   :protected forward f3 ...
+   :object forward of1 ...
+   :public object forward of2 ...
+   :protected object forward of3 ...
+ }
+
+ + + # method modifiers "object", "public" and + "protected"
# are not available.


+ Class C
+ C instparametercmd s1 ...
+ C parametercmd os1 ...
+
+ + + # Define setters with various method modifiers

+ 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" + + +

Resolvers

@@ -192,7 +257,8 @@ C instproc foo args {...}
C instproc bar args {
  my foo 1 2 3 ;# invoke own method
-   o baz       ;# invoke others method
+   o baz       ;# invoke other objects method
}
Object o
o proc baz {} {...}
@@ -201,7 +267,8 @@   :method foo args {...}
  :method bar args {
     :foo 1 2 3 ;# invoke own method
-      o baz     ;# invoke others method
+      o baz     ;# invoke other objects method
  }
}
Object create o {
@@ -212,7 +279,7 @@ -

Accessing Instance Variables from Method Bodies

+

Accessing Own Instance Variables from Method Bodies

@@ -741,6 +808,6 @@
- Last modified: Thu Jul 29 13:40:13 CEST 2010 + Last modified: Fri Jul 30 13:56:13 CEST 2010
XOTclNext Scripting Language