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 @@