Index: doc/next-migration.txt =================================================================== diff -u -r70aa197fe0c690035a2c339a841bf512e3e0b810 -r9063ec58e3c46495681147e8fd803fb10674241c --- doc/next-migration.txt (.../next-migration.txt) (revision 70aa197fe0c690035a2c339a841bf512e3e0b810) +++ doc/next-migration.txt (.../next-migration.txt) (revision 9063ec58e3c46495681147e8fd803fb10674241c) @@ -1,5 +1,5 @@ Migration Guide for the Next Scripting Language -==================================================== +=============================================== Gustaf Neumann v2.1, March 2011: :Author Initials: GN @@ -2936,20 +2936,18 @@ ==== Changing classes and superclasses -NX does not define the methods +class+ and +superclass+ but allows to -alter the class/superclass via +configure+. The class and superclass +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+. [source,tcl] ---------------- # NX example nx::Class create Foo Foo create f1 -# now alter the class of object f1 -f1 configure -class nx::Object -# alternate approach via Next Scripting Framework -::nsf::relation f1 class ::nx::Object +# now alter the class of object f1 +nsf::relation f1 class ::nx::Object ---------------- ==== Overwriting procs/methods with objects and vice versa