Index: xotcl/doc/tutorial.html =================================================================== diff -u -r2c6cdd4f5d1c45c96e996a70b54ae4c5f46a40fd -r8378485a74867cfbd1bbc4d6d0fd1b2919f205c3 --- xotcl/doc/tutorial.html (.../tutorial.html) (revision 2c6cdd4f5d1c45c96e996a70b54ae4c5f46a40fd) +++ xotcl/doc/tutorial.html (.../tutorial.html) (revision 8378485a74867cfbd1bbc4d6d0fd1b2919f205c3) @@ -1,5 +1,5 @@ - + XOTcl - Tutorial @@ -1801,7 +1801,7 @@ defined in the method definition using the following syntax:

- className instproc methodName ?non-pos-args? args body ?assertions
+ className instproc methodName ?non-pos-args? args body ?assertions
  objName proc methodName ?non-pos-args? args body ?assertions
 

@@ -1821,7 +1821,7 @@

  Object o
- o proc y {-a {-b {1 2 3}}} {x y} {
+ o proc y {-a {-b {1 2 3}} x y} {
      puts "$a $b $x $y"
  }
 

@@ -1839,10 +1839,10 @@

  o y -a 1 3 4
 

- The ordinary arguments start after the last non-positional argument (here: "3 4"). We can explicitly end the non-positional arguments by -using "--". This is useful if we want to provide arguments that contain dashes ("-"), e.g.: +using "--". This is useful if we want to provide arguments that contain +dashes ("-"), e.g.:

  o y -a 1 -- -b -c
@@ -1858,7 +1858,7 @@
 

 Class P
- P instproc y {-a:required {-b:boolean {true}}} {} {
+ P instproc y {-a:required {-b:boolean true}} {
      puts "$a $b"
  }
  P p
@@ -1877,11 +1877,11 @@
 
  p y -b " a b v"
 

- The checkoptions are extensible. In fact, they are defined in an -object "xotcl::nonPosArgs". We can extend this object with new -methods and we can provide other checkobjects. A check option method -has the following syntax: +object "::xotcl::nonposArgs". We can extend this object with new +methods. + +A check option method has the following syntax:

  object|class proc|instproc methodName {?optional arguments argName args} {
@@ -1905,7 +1905,7 @@
 checking the options. This can be done at any place in the checkoption
 list. The following example defines new checkoptions in a separate
 object and switches to this object for checking. Then the check is
-switched back to "xotcl::nonPosArgs" to invoke the predefined option
+switched back to "xotcl::nonposArgs" to invoke the predefined option
 "required":
 
 

@@ -1917,7 +1917,7 @@ colorchecker proc reddish {argName args} { puts "reddish" } -o proc color {{{-color:checkobj colorchecker,color must be red,reddish,checkobj xotcl::nonPosArgs, required} red}} {} { +o proc color {{{-color:checkobj colorchecker,color must be red,reddish,checkobj xotcl::nonposArgs, required} red}} {} { puts "$b $arg" }