Index: doc/example-scripts/traits-composite.html =================================================================== diff -u -r6ad7855cd7aba089f7a160293802e1639d0d6198 -rd31c271afb2488abafa0642b07538a3e62106130 --- doc/example-scripts/traits-composite.html (.../traits-composite.html) (revision 6ad7855cd7aba089f7a160293802e1639d0d6198) +++ doc/example-scripts/traits-composite.html (.../traits-composite.html) (revision d31c271afb2488abafa0642b07538a3e62106130) @@ -727,7 +727,7 @@

-

Fig 13: TReadStream and TWriteStream as composite traits

+

Fig 13: tReadStream and tWriteStream as composite traits

In this example, traits are used to extend classes and other traits (called then composite traits).

@@ -742,7 +742,7 @@ .nx-variable {color: #AF663F; font-weight: normal; font-style: normal;}
package req nx::trait
-

Create a Trait called TPositionableStream

+

Create a Trait called tPositionableStream

-
nx::Trait create TPositionableStream {
+
nx::Trait create tPositionableStream {
   #
   # Define the methods provided by this trait:
   #
@@ -773,8 +773,8 @@
   :requiredMethods position
   :requiredVariables collection
 }
-

Create a composite trait called TReadStream based on the trait -TPositionableStream:

+

Create a composite trait called tReadStream based on the trait +tPositionableStream:

-
nx::Trait create TReadStream {
+
nx::Trait create tReadStream {
   #
   # Methods provided by this trait:
   #
@@ -802,11 +802,11 @@
   # This trait requires these methods:
   :requiredMethods {setToStart atEnd nextPosition}
 
-  # Require the trait "TPositionableStream"
-  :require trait TPositionableStream
+  # Require the trait "tPositionableStream"
+  :require trait tPositionableStream
 }
-

Create a composite trait called TWriteStream based on the trait -TPositionableStream:

+

Create a composite trait called tWriteStream based on the trait +tPositionableStream:

-
nx::Trait create TWriteStream {
+
nx::Trait create tWriteStream {
   #
   # Methods provided by this trait:
   #
@@ -832,11 +832,11 @@
   # This trait requires these methods:
   :requiredMethods {setToEnd nextPosition}
 
-  # Require the trait "TPositionableStream"
-  :require trait TPositionableStream
+  # Require the trait "tPositionableStream"
+  :require trait tPositionableStream
 }

Define a class ReadStream with properties position and -collection that uses the composite trait TReadStream:

+collection that uses the composite trait tReadStream: