# n.a.
Index: doc/next-migration.html =================================================================== diff -u -r89714df5a6af5799a4444805cf1f82b4b2b21af2 -r686684910e44fac172d7bcd8440aa23e44c7df5b --- doc/next-migration.html (.../next-migration.html) (revision 89714df5a6af5799a4444805cf1f82b4b2b21af2) +++ doc/next-migration.html (.../next-migration.html) (revision 686684910e44fac172d7bcd8440aa23e44c7df5b) @@ -736,7 +736,7 @@
The Next Scripting Language (NX) is a successor of XOTcl 1 and is based on 10 years of experience with XOTcl in projects containing -several hundert thousand lines of code. While XOTcl was the first +several hundert thousand lines of code. While XOTcl was the first language designed to provide language support for design patterns, the focus of the Next Scripting Framework and NX are on combining this with Language Oriented Programming. In many respects, NX was designed @@ -751,7 +751,7 @@ programming. The Next Scripting Frameworks provides C-level support for defining and hosting multiple object systems in a single Tcl interpreter. The whole definition of NX is fully scripted -(e.g. defined in nx.tcl). The Next Scripting Framework is shipped +(e.g. defined in nx.tcl). The Next Scripting Framework is shipped with three language definitions, containing NX and XOTcl 2. Most of the existing XOTcl 1 programs can be used without modification in the Next Scripting Framework by using XOTcl 2. The Next Scripting @@ -817,7 +817,7 @@
-It is possible to use NX alias to register methods +It is possible to use NX alias to register methods under arbitrary names for arbitrary objects or classes.
-One can invoke in NX fully qualified methods to invoke +One can invoke in NX fully qualified methods to invoke methods outside the precedence path.
One can use in NX the same interface to query (introspect) - C-implemented and scripted methods/commands. + C-implemented and scripted methods/commands.
# XOTcl provides only method deletion with -# the equivalent of Tcl's "proc foo {} {}" +# the equivalent of Tcl's "proc foo {} {}" /obj/ proc foo {} {} /cls/ instproc foo {} {} @@ -1987,15 +1987,15 @@
-Set or get instance variables via my set varName ?value? or other +Set or get instance variables via my set varName ?value? or other variable accessing methods registered on xotcl::Object such as append, lappend, incr, etc.
Register same-named accessor functions and set/get values - of instance variables via my varName ?value? + of instance variables via my varName ?value?
# Predefined value constraints: # object, class, alnum, alpha, ascii, boolean, -# control, digit, double, false, graph, integer, -# lower, parameter, print, punct, space, true, +# control, digit, double, false, graph, integer, +# lower, parameter, print, punct, space, true, # upper, wordchar, xdigit # # User defined value constraints are possible. @@ -2906,7 +2906,7 @@ # # Define a boolean property and an integer # property with a default firstly via "properties", -# then with multiple "property" statements. +# then with multiple "property" statements. Class create Foo -properties { a:boolean @@ -4391,7 +4391,7 @@ # -source might be all|application|baseclasses # -type is the class of the slot object -/obj/ info lookup slots ?-type ...? ?-source ... ?pattern? +/obj/ info lookup slots ?-type ...? ?-source ... ?pattern? # Returns list of slot objects@@ -4952,7 +4952,7 @@ class as shown in examples above.
+
+ # n.a. |
+
+
+ # List definition of slots + +/obj/ info slot definition \ + ?-type value? ?-closure? ?-source value? ?pattern? +/cls/ class info slot definition \ + ?-type value? ?-closure? ?-source value? ?pattern? +/cls/ info slot definition \ + ?-type value? ?-closure? ?-source value? ?pattern? |
+
+
+ # n.a. |
+
+
+ # List names of slots + +/obj/ info slot names \ + ?-type value? ?-closure? ?-source value? ?pattern? +/cls/ class info slot names \ + ?-type value? ?-closure? ?-source value? ?pattern? +/cls/ info slot names \ + ?-type value? ?-closure? ?-source value? ?pattern? |
+
+
+ # n.a. |
+
+
+ # List reachable slot objects defined for obj +# -source might be all|application|baseclasses +# -type is the class of the slot object + +/obj/ info lookup slots \ + ?-type ...? ?-source ... ?pattern? + +# Returns list of slot objects |
+
# Return parameter(s) provided by class for +# Return parameter(s) provided by class for # its instances; defines, how objects of this # class can be configured. If name is provided # only the named object parameter is returned @@ -5059,10 +5159,10 @@ /cls/ info parameter list ?name? # Return just the names of the parameters -/cls/ info parameter name ?name? +/cls/ info parameter names ?name? # Return the full parameter specs -/cls/ info parameter spec ?name? +/cls/ info parameter definition ?name? # Return the slot object(s) /cls/ info parameter slot ?name? @@ -5390,7 +5490,7 @@ .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;}/cls/ info mixin classes \ - ?-closure? ?-guards? ?-heritage? ?pattern?
NX supports method-handles to provide means to obtain further +
NX supports method-handles to provide means to obtain further information about a method or to change maybe some properties of a method. When a method is created, the method creating method returns the method handle to the created method.