Index: doc/next-migration.html =================================================================== diff -u -r1beeb594c1cd9e222b6e1f419e9a6f5ec0713249 -raa41f220776456c37553c5daf8e0519d5b51f0b8 --- doc/next-migration.html (.../next-migration.html) (revision 1beeb594c1cd9e222b6e1f419e9a6f5ec0713249) +++ doc/next-migration.html (.../next-migration.html) (revision aa41f220776456c37553c5daf8e0519d5b51f0b8) @@ -3,29 +3,26 @@ - + Migration Guide for the the Next Scripting Language @@ -1029,11 +1210,11 @@

2.1. Defining Objects and Classes

When creating objects or classes, one should use the method create -explicitly. In XOTcl, a default unknown handler was provided for +explicitly. In XOTcl, a default unknown method handler was provided for classes, which create for every unknown method invocation an object/class with the name of the invoked method. This technique was convenient, but as well dangerous, since typos in method names lead -easily to unexpected behavior. This default unknown handler is not +easily to unexpected behavior. This default unknown method handler is not provided in NX (but can certainly be provided as a one-liner in NX by the application).

@@ -1578,8 +1759,8 @@ application developer in various ways. The command ::nx::configure defaultMethodCallProtection true|false can be used to set the default call protection for scripted methods, forwarder and aliases, while -::nx::configure defaultAttributeCallProtection true|false can set -the default protection for attributes. The defaults can be overwritten +::nx::configure defaultPropertyCallProtection true|false can set +the default protection for properties. The defaults can be overwritten also e.g. on a class level.

@@ -1635,8 +1816,8 @@ /cls/ ?class? delete method /name/ # Deletion of Attributes -/obj/ delete attribute /name/ -/cls/ ?class? delete attribute /name/
+/obj/ delete attribute /name/ +/cls/ ?class? delete attribute /name/ @@ -2312,8 +2493,8 @@ # scripted configuration) Class create Foo { - :attribute a - :attribute {b 1} + :property a + :property {b 1} } # Create instance of the class Foo @@ -2349,13 +2530,13 @@ # and object level Class create C { - :attribute x - :attribute {y 1} - :class attribute oa1 + :property x + :property {y 1} + :class attribute oa1 } Object create o { - :attribute oa2 + :property oa2 } @@ -2403,7 +2584,7 @@ # attribute specific type checker Class create Person { - :attribute sex { + :property sex { :type "sex" :method type=sex {name value} { switch -glob $value { @@ -2498,8 +2679,8 @@ .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;}
Class create Foo {
-   :attribute a:boolean
-   :attribute {b:integer 1}
+   :property a:boolean
+   :property {b:integer 1}
 }
@@ -2570,8 +2751,8 @@
 Class create Foo {
-   :attribute a:required
-   :attribute b:boolean,required
+   :property a:required
+   :property b:boolean,required
 }
@@ -2639,9 +2820,9 @@ .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;}
Class create Foo {
-  :attribute {ints:integer,0..n ""}
-  :attribute objs:object,1..n
-  :attribute obj:object,0..1
+  :property {ints:integer,0..n ""}
+  :property objs:object,1..n
+  :property obj:object,0..1
 }
@@ -6321,7 +6502,7 @@