Index: doc/next-migration.html =================================================================== diff -u -r062dd3cb76774853a767854e29f60a3325c4bd94 -r26480a59b14cf250904da0cdc7d895f21b0ed5fd --- doc/next-migration.html (.../next-migration.html) (revision 062dd3cb76774853a767854e29f60a3325c4bd94) +++ doc/next-migration.html (.../next-migration.html) (revision 26480a59b14cf250904da0cdc7d895f21b0ed5fd) @@ -849,7 +849,7 @@
NX provides means for method protection (method modifiers - public, protected and private). Therefore developers have + public, protected, and private). Therefore developers have to define explicitly public interfaces in order to use methods from other objects.
@@ -2693,13 +2693,13 @@register an accessor function (setter), for wich the usual - protection levels (public or protected) can be used. + protection levels (public, protected or private) can be used.
The method variable in NX is similar to property, but it creates -only slot objects in cases where needed, and it does not provide -object parameters or accessors.
We show first the definition of properties simliar to the functionality provided as well by XOTcl and show afterwards how to use value constraints, optional parameters, etc. in NX.
XOTcl 1 did not support value constraints for object parameters (just -for non-positional arguments).
NX supports value constraints (value-checkers) for object and method parameters in an orthogonal manner. NX provides a predefined set of value checkers, which can be extended by the application developer. @@ -2934,11 +2932,13 @@ # # User defined value constraints are possible. # All parameter value checkers can be turned on -# and off. +# and off at runtime. # -# Define a boolean property and an integer -# property with a default firstly via "properties", -# then with multiple "property" statements. +# Define a required boolean property "a" +# and an integer property "b" with a default. +# The first definition uses "properties", +# the second definition uses multiple +# "property" statements. Class create Foo -properties { a:boolean @@ -6950,7 +6950,7 @@