Index: doc/tutorial2.html =================================================================== diff -u -rc4f449cb353be812ba6502ef8e9587e87881f59b -r37fe2bc49a8594e767ddeb0eabbe47f8c348513a --- doc/tutorial2.html (.../tutorial2.html) (revision c4f449cb353be812ba6502ef8e9587e87881f59b) +++ doc/tutorial2.html (.../tutorial2.html) (revision 37fe2bc49a8594e767ddeb0eabbe47f8c348513a) @@ -78,7 +78,7 @@
  • Object specific methods
  • Refining the behavior of objects and classes
  • Stack of integers -
  • Class specifc methods +
  • Class specific methods
  • Introductory Overview Example: Soccer Club @@ -346,7 +346,6 @@ % Stack create s1 ::s1 % s1 push a -a % s1 push b b % s1 push c @@ -434,7 +433,6 @@ % Stack create s2 -mixin Safety ::s2 % s2 push a -a % s2 pop a % s2 pop @@ -486,7 +484,7 @@ } -

     
    Class specifc methods

    +

     
    Class specific methods

    In extended object Tcl, classes are objects as well (objects with certain properties; we will come to this later in more @@ -3057,7 +3055,7 @@ className info instmixin ?className2?

    -It returns the list of all instmixins of the the class, if className2 +It returns the list of all instmixins of the class, if className2 is not specified, otherwise it returns 1, if className2 is a mixin of the object, or 0 if not.

    @@ -3691,7 +3689,7 @@ Person slot projects -

    This object structure can be used to to query and modify the slot +

    This object structure can be used to query and modify the slot properties or to add additional methods to the slot objects. One application is for example to used slot-specific methods for checking slot values, as shown in the next section. @@ -3773,8 +3771,7 @@

    For the most common simple cases with single valued attributes, where neither setter or getter are redefined, XOTcl optimizes the slot -access function and replaces the delegation to the slot object by the -the C-level implementation of instparametercmd. +access function and replaces the delegation to the slot object by the C-level implementation of instparametercmd.

    Note that it is possible to subclass Attribute (e.g. in order to store more properties for attributes, like when attributes @@ -3931,7 +3928,7 @@

    The initcmd is executed only once, when the variable is read the first time. For later reads of the variable contents, the values are returned. -

    A value command (valuecmd) of a slot is similar to a a +

    A value command (valuecmd) of a slot is similar to a init command, except that it is executed whenever the value of the variable is read. A value command can be used e.g. to implement live updates for variables or for abstracting from sql sequences or the @@ -4226,7 +4223,7 @@ method should be prefixed with the specified string (to avoid name clashes), -earlybinding means that the function pointer of the specified command (callee) is take at invocation time (should only -be done for (builtin) commands inplemented in C), and +be done for (built-in) commands inplemented in C), and -default provides a means for providing default methods when none are specified.

    @@ -4446,8 +4443,7 @@

    The following examples show a few usages of the positional arguments in the forwarder. The forwarders f1 to f5 are created, followed by -one or more usages. The first argument of the usage is the call to -to forewarder, the second argument is the result. +one or more usages. The first argument of the usage is the call to forewarder, the second argument is the result.

       ###########################################
    @@ -4920,7 +4916,7 @@
     the current namespace because there are no name-clashes with the
     commands defined by other extensions.

    -

    Consider you want to perform a deeper integration of an other +

    Consider you want to perform a deeper integration of another extension and XOTcl because you want to benefit from XOTcl's object system. For instance, you might want to introduce composite TK widgets (sometimes called mega-widgets) as classes and inherit from these