nx::test configure -count 1
Index: doc/example-scripts/ruby-mixins.html =================================================================== diff -u -r0f57269d982e98ad81b82a12a5ab5b936784813f -r93bb0947d582f274afb1cdbc885909d55e100b36 --- doc/example-scripts/ruby-mixins.html (.../ruby-mixins.html) (revision 0f57269d982e98ad81b82a12a5ab5b936784813f) +++ doc/example-scripts/ruby-mixins.html (.../ruby-mixins.html) (revision 93bb0947d582f274afb1cdbc885909d55e100b36) @@ -741,6 +741,18 @@ XOTcl) is able to support Ruby style mixins (called modules) and decorator style mixins (named after the design pattern Decorator) in the same script.
+nx::test configure -count 1
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, @@ -933,7 +945,7 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -
% g1 mixin Mix +% g1 object mixin Mix ::Mix % g1 info precedence @@ -953,7 +965,7 @@ .nx-placeholder {color: #AF663F; font-weight: normal; font-style: italic;} .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;} -% g1 mixin "" +% g1 object mixin "" % g1 info precedence ::Group ::Enumerable ::nx::Object
An important difference between NX/XOTcl style mixins (decorators) @@ -1117,7 +1129,7 @@