Index: doc/next-migration.html =================================================================== diff -u -N -rc2374366bcb47c70ebd33cb16c8152eba783987f -r3fe3b9ed6500be19a27cbd4a0dd212a47b142194 --- doc/next-migration.html (.../next-migration.html) (revision c2374366bcb47c70ebd33cb16c8152eba783987f) +++ doc/next-migration.html (.../next-migration.html) (revision 3fe3b9ed6500be19a27cbd4a0dd212a47b142194) @@ -3,7 +3,7 @@ - + Migration Guide for the Next Scripting Language
# "parameter" creates always accessor
 # methods, accessor methods are
-# always public, no "cget" is available.
+# always public, no "cget" is available. + +Class create Foo -parameter {a {b1}} + +# Use the accessor method to query +# the value of a configuration parameter +puts [f1 b] + +# Use the accessor method to set the +# value of instance variable "a" +f1 a 100 + +# Use the accessor method to unset the +# value of instance variable "a" n.a. via +# accessor
/cls/ instmixin ...
-/cls/ instmixinguard /mixin/ ?condition?
+/cls/ instmixinguard /mixin/ ?condition? + +# Query per-class mixin +/cls/ instmixin
/obj/ mixin ...
-/obj/ mixinguard /mixin/ ?condition?
+/obj/ mixinguard /mixin/ ?condition? + +# Query per-object mixin +/obj/ mixin
-
/cls/ instfilter ...
-/cls/ instfilterguard /filter/ ?condition?
+
# Register per-class filter and guard for
+# a class
+/cls/ instfilter ...
+/cls/ instfilterguard /filter/ ?condition?
+
+# Query per-class filter
+/cls/ instfilter
-
# Register per-object filter and guard for
+
# Register per-class filter and guard for
 # a class
 
-/cls/ class filter ...
-/cls/ class filter guard /filter/ ?condition?
+/cls/ filter add|set|clear ... +/cls/ filter guard /filter/ ?condition? +/cls/ configure -filter ... + +# Query per-class filter +/cls/ filter get +/cls/ cget -filter
@@ -3714,8 +3760,13 @@
# Register per-object filter and guard for
 # an object
 
-/obj/ object filter ...
-/obj/ object filter guard /filter/ ?condition?
+/obj/ object filter add|set|clear ... +/obj/ object filter guard /filter/ ?condition? +/obj/ configure -object-filter ... + +# Query per-object filter +/cls/ object filter get +/obj/ cget -object-filter @@ -4198,6 +4249,40 @@ # Returns list of slot objects + +
+
+
# List registered filters
+/obj/ info filters -order ?-guards? ?pattern?
+
+# List registered mixins
+/obj/ info mixins -heritage ?-guards? ?pattern?
+
+
+
# List registered filters
+/obj/ info lookup filters ?-guards? ?pattern?
+
+# List registered mixins
+/obj/ info lookup mixins ?-guards? ?pattern?
+ @@ -4633,8 +4718,9 @@ # (as e.g. returned from "info configure # parameters"). -/obj/ info parameter name /parameter/ -/obj/ info parameter syntax /parameter/ +nsf::parameter::get name /parameter/ +nsf::parameter::get syntax /parameter/ +nsf::parameter::get type /parameter/ @@ -4822,12 +4908,8 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -
# ... info filter methods -order ... returns
-# method-handles instead of triples
-# (applies to all three variants)
-
-/obj/ info object filter methods \
-   ?-guards? ?-order? ?pattern?
+
/obj/ info object filter methods \
+   ?-guards? ?pattern?
 /obj/ info object filter guard /name/
@@ -4857,7 +4939,7 @@ .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;}
/cls/ info filter methods \
-   ?-guards? ?-order? ?pattern?
+   ?-guards? ?pattern?
 /cls/ info filter guard /name/
@@ -4872,7 +4954,7 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -
/obj/ info mixin ?-guards? ?-order? ?pattern?
+
/obj/ info mixin ?-guards? ?-order ?pattern?
 /obj/ info mixinguard /name/
/obj/ info object mixin classes \
-   ?-guards? ?-heritage? ?pattern?
+   ?-guards? ?pattern?
 /obj/ info object mixin guard /name/
@@ -4916,7 +4998,7 @@ .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;}
/cls/ info mixin classes \
-   ?-closure? ?-guards? ?-heritage? ?pattern?
+   ?-closure? ?-guards? ?pattern?
 /cls/ info mixin guard /name/
@@ -5034,8 +5116,8 @@ /cls/ info method registrationhandle /methodName/ /obj/ info object method registrationhandle /methodName/ # -# For aliases, one can query the original definition -# via "info method origin" +# For aliases, one can query the original +# definition via "info method origin" # /cls/ info method origin /methodName/ /obj/ info object method origin /methodName/
@@ -5930,7 +6012,7 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -
::nsf::method::assertion /obj/ check /checkptions/
+
::nsf::method::assertion /obj/ check /checkoptions/
@@ -6193,8 +6275,10 @@

3.2.3. Changing classes and superclasses

NX does not define the methods class and superclass (like XOTcl), but allows to -alter all object/class relations (including class/superclass/object-mixin/…) nsf::relation. The class and superclass -can be certainly queried in all variants with info class or info superclass.

+alter all object/class relations (including +class/superclass/object-mixin/…) +nsf::relation::set. The class and superclass can be certainly queried +in all variants with info class or info superclass.