Index: TODO =================================================================== diff -u -rf69e0909fcb180e1cbcdd316f0a20de1b254af3d -rfbf70aa67bec4deec1078074787aafb8b66b2dde --- TODO (.../TODO) (revision f69e0909fcb180e1cbcdd316f0a20de1b254af3d) +++ TODO (.../TODO) (revision fbf70aa67bec4deec1078074787aafb8b66b2dde) @@ -1771,13 +1771,17 @@ - added handling of unstacked csc entries (removed all DEBUG warnings). +- made handling of unstacked entries optional by defining + macro CHECK_ACTIVATION_COUNTS) +- added macro NSF_DEVELOPMENT for toplevel handling + if NDEBUG and CHECK_ACTIVATION_COUNTS +- cleanup of method-modifiers.tcl +- updated next migration guide + TODO: -- handling of unstacked entries should be made optional -- NsfClassListAdd() and friends should be made generic -- check, whether all CscListRemove() are needed for handling unstacked csc entries -- finsh up CscListAdd() and CscListRemove() -- cleanup method-modifiers.tcl +- provide parametersyntax definitions for XOTcl 2.0 similar + to nx - "-returns" * leave syntax as is for method? @@ -1977,3 +1981,6 @@ * serializer: handing of xo::at_cleanup in serializer (either generailization or move to OpenACS/aolserver init/naviserver init) + + * NsfClassListAdd() and friends could be made generic + Index: doc/next-migration.html =================================================================== diff -u -r137f717b92ca826ee943e8c4e74d3151859c378a -rfbf70aa67bec4deec1078074787aafb8b66b2dde --- doc/next-migration.html (.../next-migration.html) (revision 137f717b92ca826ee943e8c4e74d3151859c378a) +++ doc/next-migration.html (.../next-migration.html) (revision fbf70aa67bec4deec1078074787aafb8b66b2dde) @@ -69,8 +69,6 @@ respects: +

Below is a small, introductory example showing an implementation of +a stack in nx and XOTcl. +

 Class create Stack {
 
@@ -386,15 +407,15 @@
         :attribute {y 1}
  :class-object attribute oa1
}

- Object create o {
+ Object create o {
  :attribute oa2
- }
+ }

- Class create C \
   -attributes {
+ Class create C \
   -attributes {
    x
    {y 1}
}
-
+ @@ -423,8 +444,8 @@   :public method-definiton-method ...
  :protected method-definiton-method ...
  :class-object method-definiton-method ...
-   :protected object method-definiton-method ...
-   :public object method-definiton-method ...
+   :protected class-object method-definiton-method ...
+   :public class-object method-definiton-method ...
}
@@ -657,26 +678,25 @@ Class Foo -parameter {a {b 1}}

# Create instance of the class Foo
Foo f1 -a 0

- # Object f1 has a == 0 and b == 1
+ # Object f1 has a == 0 and b == 1

- Class Foo -slots {
+ Class Foo -slots {
   Attribute a
   Attribute b -default 1
}

# Create instance of the class Foo
Foo f1 -a 0

# Object f1 has a == 0 and b == 1
-
Class create Foo -attributes {a {b 1}}

# Create instance of the class Foo
Foo create f1 -a 0

- # Object f1 has a == 0 and b == 1
+ # Object f1 has a == 0 and b == 1

- Class create Foo {
+ Class create Foo {
   :attribute a
   :attribute {b 1}
}

@@ -732,9 +752,9 @@ Class create Foo -attributes {
   a:boolean
   {b:integer 1}
- }

+ }

- Class create Foo {
+ Class create Foo {
   :attribute a:boolean
   :attribute {b:integer 1}
}
@@ -750,9 +770,9 @@ Class create Foo -attributes {
   a:boolean,required
   {b:integer 1}
- }
+ }

- Class create Foo {
+ Class create Foo {
   :attribute a:boolean,required
   :attribute {b:integer 1}
}
@@ -769,9 +789,9 @@    ...
   ints:integer,multivalued
   {objs:object,multivalued ""}
- }
+ }

- Class create Foo {
+ Class create Foo {
   ...
   :attribute ints:integer,multivalued
   :attribute {objs:object,multivalued ""}
@@ -1401,7 +1421,7 @@

Method Protection

-

Incompatibilities between XOTcl 2.0 and XOTcl 1.*

+

Incompatibilities between XOTcl 1.* and XOTcl 2.0

Resolvers

@@ -1410,20 +1430,22 @@ starting with single colons are used in XOTcl 1.* scripts, conflicts will arise.

-

Calling objects like methods

+

Calling objects via method interface

-

Since the next framework uses a different handling of objects -registered as methods (so called ensemble objects), sub-objects can't -be called in the same way as before. In XOTcl 1.*, it was possible to -call e.g. a method foo of the slot object -Foo::slot::ints via -