Index: doc/example-scripts/ruby-mixins.html =================================================================== diff -u -r88e54fa5bb23eb546abf7f676afa03aa697ac813 -r70aa197fe0c690035a2c339a841bf512e3e0b810 --- doc/example-scripts/ruby-mixins.html (.../ruby-mixins.html) (revision 88e54fa5bb23eb546abf7f676afa03aa697ac813) +++ doc/example-scripts/ruby-mixins.html (.../ruby-mixins.html) (revision 70aa197fe0c690035a2c339a841bf512e3e0b810) @@ -747,18 +747,6 @@ dynamic class structure of NX (and XOTcl) is able to support Ruby-style mixins (called modules) and decorator style mixins (named after the design pattern Decorator) at the same time.

-
-
-
package req nx

One important difference between mixin classes in NX and Ruby’s mixins is the precedence order. While in NX, mixins are decorators (the mixins have higher precedence than the intrinsic classes, @@ -782,7 +770,9 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -

nx::Class eval {
+
package req nx
+
+nx::Class eval {
   :protected method module {name:class} {
     :configure -superclass [concat $name [:info superclass]]
   }
@@ -1126,7 +1116,7 @@
 

Index: doc/example-scripts/ruby-mixins.tcl =================================================================== diff -u -r88e54fa5bb23eb546abf7f676afa03aa697ac813 -r70aa197fe0c690035a2c339a841bf512e3e0b810 --- doc/example-scripts/ruby-mixins.tcl (.../ruby-mixins.tcl) (revision 88e54fa5bb23eb546abf7f676afa03aa697ac813) +++ doc/example-scripts/ruby-mixins.tcl (.../ruby-mixins.tcl) (revision 70aa197fe0c690035a2c339a841bf512e3e0b810) @@ -5,7 +5,6 @@ # _Ruby-style mixins_ (called modules) and _decorator style mixins_ # (named after the design pattern Decorator) at the same time. -package req nx package req nx::test nx::Test parameter count 1 @@ -24,6 +23,8 @@ # this is via multiple inheritance (i.e. via the +superclass+ # relationship). # +package req nx + nx::Class eval { :protected method module {name:class} { :configure -superclass [concat $name [:info superclass]] Index: doc/next-migration.txt =================================================================== diff -u -r26480a59b14cf250904da0cdc7d895f21b0ed5fd -r70aa197fe0c690035a2c339a841bf512e3e0b810 --- doc/next-migration.txt (.../next-migration.txt) (revision 26480a59b14cf250904da0cdc7d895f21b0ed5fd) +++ doc/next-migration.txt (.../next-migration.txt) (revision 70aa197fe0c690035a2c339a841bf512e3e0b810) @@ -1,8 +1,7 @@ -Migration Guide for the the Next Scripting Language +Migration Guide for the Next Scripting Language ==================================================== Gustaf Neumann v2.1, March 2011: -Written for the Initial Release of the Next Scripting Framework. :Author Initials: GN :toc: :toclevels: 3