Index: doc/langRef2.xotcl
===================================================================
diff -u -ra24e1f836c3126d0a0e9467bde3a9fa8da901711 -rb9fcdec2a4d614ee624d548218df4719cdb27049
--- doc/langRef2.xotcl (.../langRef2.xotcl) (revision a24e1f836c3126d0a0e9467bde3a9fa8da901711)
+++ doc/langRef2.xotcl (.../langRef2.xotcl) (revision b9fcdec2a4d614ee624d548218df4719cdb27049)
@@ -10,12 +10,12 @@
[:cmd ${:name}] returns the name of the object, which is currently executed.
If it is called from outside of an XOTcl method, it returns an error.
}
-
+
:variant "self class" {
[:cmd ${:name}] returns the name of the class, which
- holds the currently executing method. Note, that this may be
+ holds the currently executing method. Note that this may be
different to the class of the current object. If it is called from
- an object specific method it returns an empty string.
+ an object specific method it returns an empty string.
}
:variant "self method" {
@@ -24,7 +24,7 @@
:variant "self callingclass" {
[:cmd ${:name}] returns the name of the class that has
- called the executing method.
+ called the executing method.
}
:variant "self callingobject" {
@@ -38,18 +38,18 @@
}
:variant "self calledclass" {
- [:cmd ${:name}] returns the class name of the
+ [:cmd ${:name}] returns the class name of the
class that holds the target method (in mixins and filters).
}
-
+
:variant "self calledmethod" {
- [:cmd ${:name}] returns the name of the target called
- method (only applicable in a filter).
+ [:cmd ${:name}] returns the name of the target called
+ method (only applicable in a filter).
}
:variant "self isnextcall" {
[:cmd ${:name}] returns 1 if this method
- was invoked via next, otherwise 0.
+ was invoked via next, otherwise 0.
}
:variant "self next" {
@@ -58,18 +58,18 @@
:variant "self filterreg" {
[:cmd ${:name}] returns the name
- of the object/class on which the filter is registered.
+ of the object/class on which the filter is registered.
}
:variant "self callinglevel" {
- [:cmd ${:name}] returns the calling level, from where
+ [:cmd ${:name}] returns the calling level, from where
the actual method was called from. Intermediary next calls are ignored
in this computation. The level is returned in a form
that can be used as first argument in [:cmd uplevel] or [:cmd upvar].
}
:variant "self activelevel" {
- [:cmd ${:name}] returns the level, from where
+ [:cmd ${:name}] returns the level, from where
the actual method was invoked from. This might be the calling level or a next
call, whatever is higher in the stack. The level is returned in a form
that can be used as first argument in [:cmd uplevel] or [:cmd upvar].
@@ -80,15 +80,15 @@
@ xotclCmd ::xotcl::alias -arguments {
object -per-object:switch methodName -nonleaf:switch -objscope:switch cmd
} {
- The command [:cmd ${:name}] is used to register a Tcl command as method for
+ The command [:cmd ${:name}] is used to register a Tcl command as method for
an object or class.
} {
- :param object {is the object or class, on which the command
+ :param object {is the object or class, on which the command
is registered as a method}
- :param -per-object {if provided, the method is an per-object
+ :param -per-object {if provided, the method is a per-object
method (not inheritable)}
:param methodName {the name for the method to be added}
- :param -nonleaf:switch {if provided, the method will have a call
+ :param -nonleaf:switch {if provided, the method will have a call
stack entry such it can call [:cmd next]}
:param -objscope:switch {if provided, the variables created during
the execution of the method will be instance variables}
@@ -108,7 +108,7 @@
@ xotclMethod alias -partof ::xotcl2::Object \
-arguments {-nonleaf:switch -objscope:switch methodName cmd} \
{
- This method is used to register an existing Tcl command as
+ This method is used to register an existing Tcl command as
a method for a class or object.
} {
:param "-nonleaf:switch" {} -use ::xotcl::alias
@@ -127,7 +127,7 @@
}
@ xotclClass ::xotcl2::Class {
- }
+ }
}
Index: library/xotcl/apps/comm/webserver.xotcl
===================================================================
diff -u -rc4f449cb353be812ba6502ef8e9587e87881f59b -rb9fcdec2a4d614ee624d548218df4719cdb27049
--- library/xotcl/apps/comm/webserver.xotcl (.../webserver.xotcl) (revision c4f449cb353be812ba6502ef8e9587e87881f59b)
+++ library/xotcl/apps/comm/webserver.xotcl (.../webserver.xotcl) (revision b9fcdec2a4d614ee624d548218df4719cdb27049)
@@ -21,7 +21,7 @@
Secondly, it starts a second webserver with basic access control
(it accepts test/test as user/password) on port 9096 (or on the
- port specified via -protected-port). If it receives an request
+ port specified via -protected-port). If it receives a request
for an resource named "exit", it terminates. For all other requests
it returns actual information about the user and the issued request.
Index: library/xotcl/doc/langRef.xotcl
===================================================================
diff -u -r2a955681817e4db4776d7ae904babe8053c5ad74 -rb9fcdec2a4d614ee624d548218df4719cdb27049
--- library/xotcl/doc/langRef.xotcl (.../langRef.xotcl) (revision 2a955681817e4db4776d7ae904babe8053c5ad74)
+++ library/xotcl/doc/langRef.xotcl (.../langRef.xotcl) (revision b9fcdec2a4d614ee624d548218df4719cdb27049)
@@ -27,103 +27,103 @@
XOTcl contains the following predefined primitives (Tcl commands):
- <@tt>self<@/tt>
- - computes callstack related information.
+
- computes callstack related information.
It can be used in the following ways:
<@UL>
<@LI><@TT>self@TT> - returns the name
- of the object, which is currently in execution. If it is
- called from outside of a proc, it returns the
- error message ``<@TT>Can't find self@TT>''.
+ of the object, which is currently in execution. If it is
+ called from outside of a proc, it returns the
+ error message ``<@TT>Can't find self@TT>''.
<@LI><@TT>self class@TT> - the self
command with a given argument <@TT>class@TT> returns the name of the
- class, which holds the currently executing instproc. Note, that this
+ class, which holds the currently executing instproc. Note that this
may be different to the class of the current object. If it is called
- from a proc it returns an empty string.
+ from a proc it returns an empty string.
<@LI><@TT>self proc@TT> - the self command with a given argument
<@TT>proc@TT> returns the name of the currently executing proc or
- instproc.
- <@li><@TT>self callingclass@TT>: Returns class name of the
- class that has called the executing method.
- <@li><@TT>self callingobject@TT>: Returns object name of
- the object that has called the executing method.
- <@li><@TT>self callingproc@TT>: Returns proc name of
- the method that has called the executing method.
- <@li><@TT>self calledclass@TT>: Returns class name of the
- class that holds the target proc (in mixins and filters).
- <@li><@TT>self calledproc@TT>: Returns method
- name of the target proc (only applicable
- in a filter).
- <@li><@TT>self isnextcall@TT>: Return 1 if this method
- was invoked via next, otherwise 0
- <@li><@TT>self next@TT>: Return the
- "next" method on the precedence path as a string.
- <@li><@TT>self filterreg@TT>: In a filter: returns the name
- of the object/class on which the filter is registered. Returns either
- 'objName filter filterName' or 'className instfilter filterName'.
+ instproc.
+ <@li><@TT>self callingclass@TT>: Returns class name of the
+ class that has called the executing method.
+ <@li><@TT>self callingobject@TT>: Returns object name of
+ the object that has called the executing method.
+ <@li><@TT>self callingproc@TT>: Returns proc name of
+ the method that has called the executing method.
+ <@li><@TT>self calledclass@TT>: Returns class name of the
+ class that holds the target proc (in mixins and filters).
+ <@li><@TT>self calledproc@TT>: Returns method
+ name of the target proc (only applicable
+ in a filter).
+ <@li><@TT>self isnextcall@TT>: Return 1 if this method
+ was invoked via next, otherwise 0
+ <@li><@TT>self next@TT>: Return the
+ "next" method on the precedence path as a string.
+ <@li><@TT>self filterreg@TT>: In a filter: returns the name
+ of the object/class on which the filter is registered. Returns either
+ 'objName filter filterName' or 'className instfilter filterName'.
- <@li><@TT>self callinglevel@TT>: Returns the calling level, from where
- the actual proc was called from. Intermediary next calls are ignored
- in this computation. The level is returned in a form
- it can be used as first argument in <@TT>uplevel@TT> or <@TT>upvar@TT>.
+ <@li><@TT>self callinglevel@TT>: Returns the calling level, from where
+ the actual proc was called from. Intermediary next calls are ignored
+ in this computation. The level is returned in a form
+ it can be used as first argument in <@TT>uplevel@TT> or <@TT>upvar@TT>.
- <@li><@TT>self activelevel@TT>: Returns the level, from where
- the actual proc was invoked from. This might be the calling level or a next
- call, whatever is higher in the stack. The level is returned in a form
- it can be used as first argument in <@TT>uplevel@TT> or <@TT>upvar@TT>.
+ <@li><@TT>self activelevel@TT>: Returns the level, from where
+ the actual proc was invoked from. This might be the calling level or a next
+ call, whatever is higher in the stack. The level is returned in a form
+ it can be used as first argument in <@TT>uplevel@TT> or <@TT>upvar@TT>.
<@/UL>
<@/p>
- <@tt>my methodName<@/tt>
- - is a short form for <@tt>[self] methodName@tt> and can only be
- called in a context of an instproc or an method specific proc. It allows certain
+
- is a short form for <@tt>[self] methodName@tt> and can only be
+ called in a context of an instproc or a method specific proc. It allows certain
optimizations and shorter to write.
<@/p><@p>
<@tt>next <@/tt>
invokes the next shadowed (same-named) method on the
precedence path and returns its result. If <@tt>next@tt> is
called without arguments, the arguments of the current method
- are passed through the called method. If <@tt>next@tt> is
+ are passed through the called method. If <@tt>next@tt> is
invoked with the flag <@tt>--noArgs@tt>, the shadowed method
- is called without arguments. If other arguments are specified
+ is called without arguments. If other arguments are specified
for next, these will be used for the call.
<@/dd>
- <@tt>myvar varName@tt>
- returns the fully qualified variable name of the specified
- variable.
+ variable.
- <@tt>myproc methodName ?args?@tt>
- - calls the specified XOTcl method without the need
- of using "<@tt>[list [self] methodName ...]@tt>".
+
- calls the specified XOTcl method without the need
+ of using "<@tt>[list [self] methodName ...]@tt>".
- <@tt>::xotcl::alias class|obj methodName ?-objscope? ?-per-object? cmdName@tt>
- can be used to register a predefined C-implemented Tcl command as
- method <@tt>methodName@tt>.
- The option <@tt>-objscope@tt> has the same meaning as for forwarder
- (instance variables of the calling object appear in the local scope of
- the Tcl command), <@tt>-per-object@tt> has the same meaning as for
- the method <@tt>method@tt> (when used on a class, the method is registered for the
- class object only, but not for the instances). This command
- can be used to bootstrap xotcl (when e.g. no methods are available).
+ method <@tt>methodName@tt>.
+ The option <@tt>-objscope@tt> has the same meaning as for forwarder
+ (instance variables of the calling object appear in the local scope of
+ the Tcl command), <@tt>-per-object@tt> has the same meaning as for
+ the method <@tt>method@tt> (when used on a class, the method is registered for the
+ class object only, but not for the instances). This command
+ can be used to bootstrap xotcl (when e.g. no methods are available).
-
- - ::xotcl::configure filter ?on|off?<@/tt>
-
+
+
- ::xotcl::configure filter ?on|off?<@/tt>
-
- allows one to
turn on or off filters globally for the current interpreter.
By default, the filter state is turned off.
- This function returns the old filter state.
+ This function returns the old filter state.
This function is needed for the serializer that is intended
to serialize the objects classes independent of filter settings.
- - <@tt>::xotcl::configure softrecreate ?on|off?<@/tt>
+ - <@tt>::xotcl::configure softrecreate ?on|off?<@/tt>
- allows one to control
what should happen, when an object / a class is recreated. Per
default it is set off, which means that the object/class is destroyed
- and all relations (e.g. subclass/superclass) to other
+ and all relations (e.g. subclass/superclass) to other
objects/classes are destroyed as well. If <@tt>softrecreate@tt> is
set, the object is reseted, but not destroyed, the relations
are kept. This is important, when e.g. reloading a file
@@ -138,11 +138,11 @@
set, the structure remains unchanged.
-
-
- <@tt>::xotcl::finalize<@/tt>
+ - <@tt>::xotcl::finalize<@/tt>
- Delete all XOTcl objects and classes and free all associated memory.
This command has the only purpose to delete all objects and classes
- of an interpreter in a multi-threaded environment at a safe time.
+ of an interpreter in a multi-threaded environment at a safe time.
Background: when XOTcl is used in a threaded environment such as
for example in AOLserver, one has to take care that the deletion
@@ -157,7 +157,7 @@
call ::xotcl::finalize in the "delete trace" in AOLserver (as it
happens in OpenACS).
- Note, that ::xotcl::finalize is not intended for application programs.
+ Note that ::xotcl::finalize is not intended for application programs.
-
@@ -170,7 +170,7 @@
##
@ Class Object {
description {
- This class holds the pre-defined methods available for all XOTcl
+ This class holds the pre-defined methods available for all XOTcl
objects. All these methods are also available on classes.
}
}
@@ -182,7 +182,7 @@
} {
Description {
Specify an abstract method for class/object with arguments.
-
+
An abstract method specifies an interface and
returns an error, if it is invoked directly.
Sub-classes or mixins have to override it.
@@ -195,7 +195,7 @@
args "arguments to append"
} {
Description {
- Append all of the value arguments to the current value of variable
+ Append all of the value arguments to the current value of variable
varName. Wrapper to the same named Tcl command
(see documentation of Tcl command with the same name for details).
}
@@ -208,8 +208,8 @@
?args? "args of the option"
} {
Description {
- This method performs one of several operations on the variable
- given by arrayName. It is a wrapper to the same named Tcl command
+ This method performs one of several operations on the variable
+ given by arrayName. It is a wrapper to the same named Tcl command
(see documentation of Tcl command with the same name for details).
}
return "diverse results"
@@ -218,17 +218,17 @@
@ Object instproc autoname {
?<-instance>|<-reset>? "Optional modifiers: <@br>
'-instance' makes the autoname start with a small letter.<@br>
- '-reset' resets the autoname index to 0."
+ '-reset' resets the autoname index to 0."
name "base name of the autoname"} {
Description {
- autoname creates an automatically assigned name. It is
- constructed from the base name plus an index, that is
- incremented for each usage. E.g.:
+ autoname creates an automatically assigned name. It is
+ constructed from the base name plus an index, that is
+ incremented for each usage. E.g.:
<@pre class='code'> $obj autoname a@pre>
produces a0, a1, a2, ...
- Autonames may have format strings
- as in the Tcl 'format' command.
- E.g.:
+ Autonames may have format strings
+ as in the Tcl 'format' command.
+ E.g.:
<@pre class='code'> $obj autoname a%06d@pre>
produces a000000, a000001, a000002, ...
}
@@ -240,13 +240,13 @@
} {
Description {
Turn on/off assertion checking. Options argument is the list
- of assertions, that should be checked on the object automatically.
- Per default assertion checking is turned
+ of assertions, that should be checked on the object automatically.
+ Per default assertion checking is turned
off.
Examples:
<@pre CLASS="code">
- o check {}; <@i># turn off assertion checking on object o@i>
- o check all; <@i># turn on all assertion checks on object o@i>
+ o check {}; <@i># turn off assertion checking on object o@i>
+ o check all; <@i># turn on all assertion checks on object o@i>
o check {pre post}; <@i># only check pre/post assertions@i>
@pre>
}
@@ -258,7 +258,7 @@
} {
Description {
Changes the class of an object dynamically to <@tt>newClass@tt>.
- The method returns the current value of class,
+ The method returns the current value of class,
when it is called without arguments.
}
return "if <@tt>newClass@tt> is not specified return class, otherwise empty"
@@ -278,45 +278,45 @@
?args? "'-' method calls"
} {
Description {
- Calls the '-' (dash) methods. I.e. evaluates arguments and calls
- everything starting with '-' (and not having a digit a
+ Calls the '-' (dash) methods. I.e. evaluates arguments and calls
+ everything starting with '-' (and not having a digit a
second char) as a method. Every list element until the next '-'
- is interpreted as a method argument. configure is called
+ is interpreted as a method argument. configure is called
before the constructor init during initialization and recreation.
- In the following example, the variable set is called via
+ In the following example, the variable set is called via
configure before init:
<@pre class='code'> Object o -set x 4@pre>
The method configure can be called with the
dash-notation at arbitrary times:
<@pre class='code'> o configure -set x 4@pre>
- Note, that if '-' is followed by a numerical, the arument is
+ Note that if '-' is followed by a numerical, the arument is
interpreted as a negative number (and not as a method). If a
value of a method called this way starts with a "-", the call can
be placed safely into a list (e.g. "Class c [list -strangearg -a-]
- -simplearg 2").
+ -simplearg 2").
See also create.
- }
+ }
return "number of the skipped first arguments"
}
@ Object instproc contains {
"?-withnew?" "Option to overload new to create new objects within
the specified object. Per default, this option is turned on."
- "?-object?" "object, in which the new objects should be created.
+ "?-object?" "object, in which the new objects should be created.
The default is the object, for which contains>/tt> was called."
- "?-class?" "In combination with option -object: If the specified
- object does not exist, create it from the specified class. The default
- is ::xotcl::Object"
+ "?-class?" "In combination with option -object: If the specified
+ object does not exist, create it from the specified class. The default
+ is ::xotcl::Object"
cmd "Tcl command to create multiple objects"
} {
Description {
This method can be used to create nested object structures
- with little syntactic overhead. The method changes the namespace
- to the specified object and creates objects there.
- Optionally, a different object scope can be specified and
+ with little syntactic overhead. The method changes the namespace
+ to the specified object and creates objects there.
+ Optionally, a different object scope can be specified and
creating new objects in the specified scope can be turned off.
- The following command creates a three rectangles, containing some
+ The following command creates a three rectangles, containing some
points.
Class Point -parameter {{x 100} {y 300}}
@@ -354,7 +354,7 @@
newName "destination of copy operation"
} {
Description {
- Perform a deep copy of the object/class (with all information, like
+ Perform a deep copy of the object/class (with all information, like
class, parameter, filter, ...)
to "newName".
}
@@ -365,7 +365,7 @@
?args? "Arbitrary arguments passed to the destructor"
} {
Description {
- Standard destructor.
+ Standard destructor.
Can be overloaded for customized destruction process. Actual destruction
is done by instdestroy. "destroy" in principal does:
<@pre class='code'>
@@ -381,7 +381,7 @@
} {
Description {
Eval args in the scope of the object. That is local variables
- are directly accessible as Tcl vars.
+ are directly accessible as Tcl vars.
}
return "result of cmds evaled"
}
@@ -393,8 +393,8 @@
} {
Description {
Check an argument list separated with '-' args, as for instance
- configure
- arguments, and extract the argument's values. Optionally, cut the
+ configure
+ arguments, and extract the argument's values. Optionally, cut the
whole argument.
}
return "value list of the argument"
@@ -413,13 +413,13 @@
?args? "filter specification"
} {
Description {
- If <@tt>$args@tt> is one argument, it specifies a list of filters to
+ If <@tt>$args@tt> is one argument, it specifies a list of filters to
be set. Every filter must be an XOTcl proc/instproc within
the object scope.
If <@tt>$args@tt> it has more argument, the first one specifies the
- action. Possible values are <@tt>assign@tt>, <@tt>get@tt>,
+ action. Possible values are <@tt>assign@tt>, <@tt>get@tt>,
<@tt>add@tt> or <@tt>delete@tt>, it modifies the current
- settings as indicated. For more details, check the
+ settings as indicated. For more details, check the
tutorial.
}
return "if <@tt>$args@tt> return empty current filters, otherwise empty"
@@ -431,17 +431,17 @@
} {
description {
Add conditions to guard a filter registration point. The filter
- is only executed, if the guards are true. Otherwise we ignore the
- filter. If no guards are given, we always execute the filter.
+ is only executed, if the guards are true. Otherwise we ignore the
+ filter. If no guards are given, we always execute the filter.
}
return "an empty string"
}
@ Object instproc filtersearch {
- methodName "filter method name"
+ methodName "filter method name"
} {
description {
- Search a full qualified method name that
+ Search a full qualified method name that
is currently registered as a filter. Return a list of the
proc qualifier format:
'objName|className proc|instproc methodName'.
@@ -458,44 +458,44 @@
} {
Description {
- Register an object specific method (similar to a proc) for forwarding calls to
- a callee (target Tcl command, other object).
- When the forwarder method is called, the actual arguments
- of the invocation are appended to the specified arguments. In callee an
- arguments certain substitutions can take place:
+ Register an object specific method (similar to a proc) for forwarding calls to
+ a callee (target Tcl command, other object).
+ When the forwarder method is called, the actual arguments
+ of the invocation are appended to the specified arguments. In callee an
+ arguments certain substitutions can take place:
- %proc: substituted by name of the forwarder method
- - %self: substitute by name of the object
- - %1: substitute by first argument of the invocation
- - {%@POS value}: substitute the specified value in the argument list
- on position POS, where POS can be a positive or negative integer
- or end. Positive integers specify the position from the begin
- of the list, while negative integer specify the position from the end.
-
- {%argclindex LIST}: take the nth argument of the specified list as
- substitution value, where n is the number of arguments from the
- invocation.
-
- %%: a single percent.
- - %Tcl-command: command to be executed; substituted by result.
+ - %self: substitute by name of the object
+ - %1: substitute by first argument of the invocation
+ - {%@POS value}: substitute the specified value in the argument list
+ on position POS, where POS can be a positive or negative integer
+ or end. Positive integers specify the position from the begin
+ of the list, while negative integer specify the position from the end.
+
- {%argclindex LIST}: take the nth argument of the specified list as
+ substitution value, where n is the number of arguments from the
+ invocation.
+
- %%: a single percent.
+ - %Tcl-command: command to be executed; substituted by result.
Additionally each argument can be prefixed by the positional prefix %@POS
- (note the delimiting space at the end) that can be used to specify an
- explicit position. POS can be a positive or negative integer or the word
- end. The positional arguments are evaluated from left to
+ (note the delimiting space at the end) that can be used to specify an
+ explicit position. POS can be a positive or negative integer or the word
+ end. The positional arguments are evaluated from left to
right and should be used in ascending order. valid Options are:
- - -objscope causes the target to be evaluated in the scope
- of the object,
- - -methodprefix string inserts the specified prefix
- in front of the second argument of the invocation,
- - -default is used for default method names (only
- in connection with %1)
- - -earlybinding: look up the function
- pointer of the called Tcl command at
- definition time of the forwarder instead of invocation time.
- This option should only be used
- for calling C-implemented Tcl commands, no procs etc.);
- - -verbose
: print the substituted command to stderr
- before executing
+ - -objscope causes the target to be evaluated in the scope
+ of the object,
+ - -methodprefix string inserts the specified prefix
+ in front of the second argument of the invocation,
+ - -default is used for default method names (only
+ in connection with %1)
+ - -earlybinding: look up the function
+ pointer of the called Tcl command at
+ definition time of the forwarder instead of invocation time.
+ This option should only be used
+ for calling C-implemented Tcl commands, no procs etc.);
+ - -verbose
: print the substituted command to stderr
+ before executing
- See
+ See
tutorial
for detailed examples.
}
@@ -507,10 +507,10 @@
?className? "name of a class to be tested"
} {
Description {
- Test whether the argument is either
- a mixin or instmixin of the object or
+ Test whether the argument is either
+ a mixin or instmixin of the object or
if it is on the class hierarchy of the object.
- This method combines the functionalities of
+ This method combines the functionalities of
istype and ismixin.
}
return "1 or 0"
@@ -536,13 +536,13 @@
Description {
Introspection of objects. The following options can be specified:
<@l>
- <@li><@TT>objName info args method@TT>:
+ <@li><@TT>objName info args method@TT>:
Returns the arguments of the specified proc (object specific method).
- <@li><@TT>objName info body method@TT>:
+ <@li><@TT>objName info body method@TT>:
Returns the body of the specified proc (object specific method).
-
- <@li><@TT>objName info class@TT>:
+
+ <@li><@TT>objName info class@TT>:
Returns the class of objName.
<@li><@TT>objName info children ?pattern?@TT>: Returns the
@@ -560,15 +560,15 @@
method) <@TT>method@TT> has a default value, otherwise 0. If
it exists the default value is stored in <@TT>var@TT>.
- <@li><@TT>objName info filter@TT>: Returns a list of filters.
- With -guard modifier all filterguards are integrated
- (<@TT> objName info filter -guards@TT>). With <@TT>-order@TT>
+ <@li><@TT>objName info filter@TT>: Returns a list of filters.
+ With -guard modifier all filterguards are integrated
+ (<@TT> objName info filter -guards@TT>). With <@TT>-order@TT>
modifier the order of filters (whole hierarchy) is printed.
- <@li><@TT>objName info filterguard name@TT>: Returns the guards
+ <@li><@TT>objName info filterguard name@TT>: Returns the guards
for filter identified by name.
- <@li><@TT>objName info forward ?-definition name? ?pattern?@TT>:
+ <@li><@TT>objName info forward ?-definition name? ?pattern?@TT>:
Returns the list of forwarders. One can call this method either
without the optional arguments, or with the <@TT>pattern@TT>
or with <@TT>-definition name@TT>. When the <@TT>pattern@TT> is specified
@@ -577,23 +577,23 @@
of the forwarder with all flags is returned in a way that
can be used e.g. for registering the forwarder on another object.
- <@li><@TT>objName info hasnamespace@TT>: From XOTcl version 0.9 on,
- namespaces
- of objects are allocated on demand. hasnamespace returns 1, if the
+ <@li><@TT>objName info hasnamespace@TT>: From XOTcl version 0.9 on,
+ namespaces
+ of objects are allocated on demand. hasnamespace returns 1, if the
object currently has a namespace, otherwise 0. The method
- <@TT>requireNamespace@TT> can
+ <@TT>requireNamespace@TT> can
be used to ensure that the object has a namespace.
-
- <@li><@TT>objName info info@TT>: Returns a list of all available info
+
+ <@li><@TT>objName info info@TT>: Returns a list of all available info
options on the object.
<@li><@TT>objName info invar@TT>: Returns object invariants.
<@li><@TT>objName info methods@TT>: Returns the list of all methods
- currently reachable for objName. Includes procs, instprocs, cmds,
+ currently reachable for objName. Includes procs, instprocs, cmds,
instcommands on object, class hierarchy and mixins.
- Modifier <@TT>-noprocs@TT> only returns instcommands,
- <@TT>-nocmds@TT> only returns procs.
+ Modifier <@TT>-noprocs@TT> only returns instcommands,
+ <@TT>-nocmds@TT> only returns procs.
Modifier <@TT>-nomixins@TT> excludes search on mixins.
<@li><@TT>objName info mixin ?-order? ?-guard? ?pattern?@TT>:
@@ -608,32 +608,32 @@
<@li><@TT>objName info nonposargs methodName@TT>: Returns
non-positional arg list of methodName
- <@li><@TT>objName info parametercmd ?pattern?@TT>:
+ <@li><@TT>objName info parametercmd ?pattern?@TT>:
Returns a list of registered parametercmds the object
(or empty if there are none). If <@TT>pattern@TT>
is specified, only the matching parametercmds are returned.
- <@li><@TT>objName info parent@TT>:
- Returns parent object name (or "::" for no parent),
+ <@li><@TT>objName info parent@TT>:
+ Returns parent object name (or "::" for no parent),
in fully qualified form.
- <@li><@TT>objName info post methodName@TT>:
+ <@li><@TT>objName info post methodName@TT>:
Returns post assertions of methodName.
- <@li><@TT>objName info pre methodName@TT>:
+ <@li><@TT>objName info pre methodName@TT>:
Returns pre assertions of methodName.
<@li><@TT>objName info procs ?pattern?@TT>: Returns all procs
defined for the object if <@TT>pattern@TT> was not specified,
otherwise it returns all procs that match the pattern.
<@li><@TT>objName info precedence ?-intrinsic? ?pattern?@TT>: Returns all
- classes in the precedence order from which the specified
+ classes in the precedence order from which the specified
object inherits methods. If the flag <@TT>-intrinsic@TT> is specified
only the intrinsic classes (from the class hierarchy) are specified.
If the flag is not specified, the returned list of classes contains
the mixin and instmixin classes as well as the classes of the
- superclass chain in linearized order (i.e., duplicate classes
+ superclass chain in linearized order (i.e., duplicate classes
are removed). If the pattern is specified, only matching classes
are returned.
@@ -650,19 +650,19 @@
"?v2...vn?" "optional other names for instance variables"
} {
Description {
- Binds an variable of the object to the current method's scope.
- Example:
+ Binds a variable of the object to the current method's scope.
+ Example:
<@pre class='code'>
kitchen proc enter {name} {
my instvar persons
set persons($name) [clock seconds]
}@pre>
- Now persons can be accessed as a local variable of the method.<@br>
-
- A special syntax is: <@tt> {varName aliasName} @tt>.
+ Now persons can be accessed as a local variable of the method.<@br>
+
+ A special syntax is: <@tt> {varName aliasName} @tt>.
This gives the variable with the name
- <@TT>varName@TT> the alias <@TT>aliasName@TT>.
- This way the variables can be linked to the methods scope,
+ <@TT>varName@TT> the alias <@TT>aliasName@TT>.
+ This way the variables can be linked to the methods scope,
even if a variable with that name already exists in the scope.
}
return "empty string"
@@ -672,7 +672,7 @@
invariantList "Body of invariants for the object"
} {
Description {
- Specify invariants for the objects. All assertions are a list
+ Specify invariants for the objects. All assertions are a list
of ordinary Tcl conditions.
}
return "empty string"
@@ -682,8 +682,8 @@
?className? "name of a class to be tested"
} {
Description {
- Test whether the argument (or the Object, if no argument is specified)
- is an existing class or not.
+ Test whether the argument (or the Object, if no argument is specified)
+ is an existing class or not.
}
return "1 or 0"
}
@@ -722,8 +722,8 @@
} {
Description {
Test whether the argument is a type of the object. I.e., 1 is returned
- if className is either the class of the object or one of its
- superclasses.
+ if className is either the class of the object or one of its
+ superclasses.
}
return "1 or 0"
}
@@ -734,8 +734,8 @@
} {
Description {
Append all the specified arguments to the list specified
- by varName as separated elements (typically separated by blanks).
- If varName doesn't exist, it creates a list with the specified
+ by varName as separated elements (typically separated by blanks).
+ If varName doesn't exist, it creates a list with the specified
values
(see documentation of Tcl command with the same name for details).
}
@@ -748,12 +748,12 @@
?args? "mixin specification"
} {
Description {
- If <@tt>$args@tt> is one argument, it specifies a list of mixins to
+ If <@tt>$args@tt> is one argument, it specifies a list of mixins to
be set. Every mixin must be a defined class.
If <@tt>$args@tt> has more argument, the first one specifies the
- action. Possible values are <@tt>assign@tt>, <@tt>get@tt>,
+ action. Possible values are <@tt>assign@tt>, <@tt>get@tt>,
<@tt>add@tt> or <@tt>delete@tt>, it modifies the current
- settings as indicated. For more details, check the
+ settings as indicated. For more details, check the
tutorial.
}
return "if <@tt>$args@tt> empty return current mixins, otherwise empty"
@@ -763,10 +763,10 @@
newName "destination of move operation"
} {
Description {
- Perform a deep move of the object/class (with all information, like
+ Perform a deep move of the object/class (with all information, like
class, parameter, filter, ...)
to "newName".
- Note that move is currently implemented as a copy plus
+ Note that move is currently implemented as a copy plus
subsequent destroy operation.
}
return "empty string"
@@ -776,8 +776,8 @@
name "variable to be provided with getter/setter method"
} {
description {
- Add a getter/setter for an instance variable with the
- specified name as a command for the obj.
+ Add a getter/setter for an instance variable with the
+ specified name as a command for the obj.
Example:
<@pre class='code'>
Object o
@@ -792,13 +792,13 @@
} {
description {
flag that constructor (method <@tt>init) should
- not be called.
+ not be called.
Example:
<@pre class='code'>
Class C
C instproc init {} {puts hu}
C c1 -noinit@pre>
- The object <@tt>c1@tt> will be created without calling
+ The object <@tt>c1@tt> will be created without calling
the constructor. This can be used to draw a snapshot of
an existing object (using the serializer) and to recreate
it in some other context in its last state.
@@ -819,8 +819,8 @@
Specify a method in the same style as Tcl specifies procs.
<@br>
Optionally assertions may be specified by two additional arguments.
- Therefore, to specify only post-assertions an empty pre-assertion
- list must be given. All assertions are a list
+ Therefore, to specify only post-assertions an empty pre-assertion
+ list must be given. All assertions are a list
of ordinary Tcl conditions.
<@br>
When instproc is called with an empty argument list and an empty
@@ -831,16 +831,16 @@
}
@ Object instproc procsearch {
- procName "simple proc name"
+ procName "simple proc name"
} {
Description {
- Search which method should be invoked for an object and return the fully
+ Search which method should be invoked for an object and return the fully
qualified name of the method as a list in
proc qualifier format:
- 'objName|className proc|instproc|forward|instforward|parametercmd|instparametercmd|cmd|instcmd methodName'.
+ 'objName|className proc|instproc|forward|instforward|parametercmd|instparametercmd|cmd|instcmd methodName'.
The proc qualifier format reports the command used to create the method. The
only exception is instcmd and cmd, which refer to commands implemented in C.
- E.g.,
+ E.g.,
<@pre class='code'> o procsearch set @pre>
returns <@pre>::xotcl::Object instcmd set@pre>.
}
@@ -850,19 +850,19 @@
@ Object instproc requireNamespace {
} {
Description {
- The method <@TT>requireNamespace@TT> can
- be used to ensure that the object has a namespace.
- Namespaces are created automatically by XOTcl, when e.g. an object has
+ The method <@TT>requireNamespace@TT> can
+ be used to ensure that the object has a namespace.
+ Namespaces are created automatically by XOTcl, when e.g. an object has
child objects (aggregated objects) or procs. The namespace
will be used to keep instance variables, procs and child objects.
- To check, whether an object currently has a namespace,
+ To check, whether an object currently has a namespace,
<@TT>info hasnamespace@TT> can be used.
-
- Hint: In versions prior to XOTcl 0.9 all XOTcl objects
+
+ Hint: In versions prior to XOTcl 0.9 all XOTcl objects
had their own namespaces; it was made on demand to save memory when
- e.g. huge numbers of objects are created.
+ e.g. huge numbers of objects are created.
<@TT>requireNamespace@TT> is often needed when e.g. using Tk widgets
- when variables are to be referenced via the namespace
+ when variables are to be referenced via the namespace
(with <@TT>... -variable [self]::varName ...@TT>).
}
return "empty string"
@@ -933,7 +933,7 @@
} {
Description {
When this method is used without the optional level, it is a short form
- of the Tcl command
+ of the Tcl command
<@pre class='code'> upvar [self callinglevel] otherVar localVar ?...?<@/pre>.
When it is called with the level, it is compatible with the original Tcl command.
}
@@ -961,8 +961,8 @@
Set body for the exit handler procedure. The exit handler
is executed when XOTcl is existed or aborted. Can be used to call
cleanups that are not associated with objects (otherwise use
- destructor).
- On exit the object destructors are called after the
+ destructor).
+ On exit the object destructors are called after the
user-defined exit-handler.
}
return "exit handler proc body"
@@ -971,7 +971,7 @@
# class
@ Class Class -superclass Object {
description {
- This meta-class holds the pre-defined methods available for all XOTcl
+ This meta-class holds the pre-defined methods available for all XOTcl
classes.
}
}
@@ -1031,32 +1031,32 @@
with leading dashes as method calls.
Call the method <@tt>init<@/tt> to
- allow initialization by the class. The argument passed to init are the
+ allow initialization by the class. The argument passed to init are the
values from the passed argument list containing the arguments up to the first '-'.<@p>
Create firstly calls <@tt>alloc@tt> in order to allocate memory for the
new object. Then default values for parameters are searched on
- superclasses (an set if found).
+ superclasses (an set if found).
- Finally the constructor <@tt>init@tt> is called on the object
+ Finally the constructor <@tt>init@tt> is called on the object
with all arguments up to the first '-' arg.<@p>
- The <@tt>create@tt> method is often called implicitly through the
+ The <@tt>create@tt> method is often called implicitly through the
<@tt>unknown@tt>
mechanism when a class (meta-class) is called with an unknown
- method. E.g. the following two commands are equivalent
+ method. E.g. the following two commands are equivalent
<@pre class='code'>
- Car herby -color red
+ Car herby -color red
Car create herby -color red <@/pre>
- When a users may want to call the constructor <@tt>init@tt>
- before other '-' methods, one can specify '-init'
+ When a users may want to call the constructor <@tt>init@tt>
+ before other '-' methods, one can specify '-init'
explicitly in the left to
right order of the '-' method. Init is called always only once.
- e.g.:
+ e.g.:
<@pre class='code'> Class Car -init -superclass Vehicle <@/pre>
@@ -1068,24 +1068,24 @@
args "info options"
} {
Description {
- Introspection of classes. All options available for objects
- (see <@a href="#Object-info">info object@a>) is also available
- for classes.
+ Introspection of classes. All options available for objects
+ (see <@a href="#Object-info">info object@a>) is also available
+ for classes.
The following options can be specified:
<@ul>
- <@li><@TT>ClassName info classchildren ?pattern?@TT>:
- Returns the list of nested classes with fully qualified names
- if <@TT>pattern@TT> was not specified,
- otherwise it returns all class children where the class name
+ <@li><@TT>ClassName info classchildren ?pattern?@TT>:
+ Returns the list of nested classes with fully qualified names
+ if <@TT>pattern@TT> was not specified,
+ otherwise it returns all class children where the class name
matches the pattern.
- <@li><@TT>ClassName info classparent@TT>:
+ <@li><@TT>ClassName info classparent@TT>:
Returns the class ClassName is nesting to.
<@li><@TT>ClassName info heritage ?pattern?@TT>:
- Returns a list of all classes in the precedence order
- of the class hierarchy.
+ Returns a list of all classes in the precedence order
+ of the class hierarchy.
If pattern is specified, only matching values are returned.
<@li><@TT>ClassName info instances ?-closure? ?pattern?@TT>:
@@ -1104,23 +1104,23 @@
Returns the body of the specified instproc (instance method).
<@li><@TT>ClassName info instcommands ?pattern?@TT>:
- Returns all commands defined for the class. If pattern
+ Returns all commands defined for the class. If pattern
is specified it returns all commands that match the pattern.
- <@li><@TT>ClassName info instdefault method arg var@TT>:
+ <@li><@TT>ClassName info instdefault method arg var@TT>:
Returns 1 if the argument <@TT>arg@TT> of the instproc (instance method)
- <@TT>method@TT> has a default value, otherwise 0. If it exists
+ <@TT>method@TT> has a default value, otherwise 0. If it exists
the default value is stored in <@TT>var@TT>.
- <@li><@TT>ClassName info instfilter@TT>:
- Returns the list of registered filters. With -guard modifier
- all instfilterguards are integrated
+ <@li><@TT>ClassName info instfilter@TT>:
+ Returns the list of registered filters. With -guard modifier
+ all instfilterguards are integrated
(<@TT> ClassName info instfilter -guards@TT>).
- <@li><@TT>objName info instfilterguard name@TT>: Returns the guards
+ <@li><@TT>objName info instfilterguard name@TT>: Returns the guards
for instfilter identified by name.
- <@li><@TT>objName info instforward ?-definition name? ?pattern?@TT>:
+ <@li><@TT>objName info instforward ?-definition name? ?pattern?@TT>:
Returns the list of instforwarders. One can call this method either
without the optional arguments, or with the <@TT>pattern@TT>
or with <@TT>-definition name@TT>. When the <@TT>pattern@TT> is specified
@@ -1129,9 +1129,9 @@
of the instforwarder with all flags is returned in a way that
can be used e.g. for registering the instforwarder on another class.
- <@li><@TT>ClassName info instinvar@TT>:
+ <@li><@TT>ClassName info instinvar@TT>:
Returns class invariants.
-
+
<@li><@TT>ClassName info instmixin ?pattern?@TT>: Returns the
list of instmixins of this class. If <@TT>pattern@TT> is
specified and it contains wildcards, all matching mixin classes are
@@ -1150,22 +1150,22 @@
either the fully qualified name is returned, or empty, if no
match exists.
- <@li><@TT>ClassName info instnonposargs methodName@TT>: returns list of
+ <@li><@TT>ClassName info instnonposargs methodName@TT>: returns list of
non-positional args of methodName
- <@li><@TT>objName info instparametercmd ?pattern?@TT>:
+ <@li><@TT>objName info instparametercmd ?pattern?@TT>:
Returns a list of registered instparametercmds the class
(or empty if there are none). If <@TT>pattern@TT>
is specified, only the matching instparametercmds are returned.
- <@li><@TT>ClassName info instpost methodName@TT>:
+ <@li><@TT>ClassName info instpost methodName@TT>:
Returns post assertions of methodName.
- <@li><@TT>ClassName info instpre methodName@TT>:
+ <@li><@TT>ClassName info instpre methodName@TT>:
Returns pre assertions of methodName.
- <@li><@TT>ClassName info instprocs ?pattern?@TT>:
- Returns all instprocs defined for the class. If pattern
+ <@li><@TT>ClassName info instprocs ?pattern?@TT>:
+ Returns all instprocs defined for the class. If pattern
is specified it returns all instprocs that match the pattern.
<@li><@TT>ClassName info mixinof ?-closure? ?pattern?@TT>: Returns the
@@ -1179,7 +1179,7 @@
either the fully qualified name is returned, or empty, if no
match exists.
- <@li><@TT>ClassName info parameter@TT>:
+ <@li><@TT>ClassName info parameter@TT>:
Returns parameter list.
<@li><@TT>ClassName info subclass ?-closure? ?pattern?@TT>:
@@ -1209,7 +1209,7 @@
?args? "arguments passed to the destructor"
} {
Description {
- Standard destructor. Destroys XOTcl object physically from the memory.
+ Standard destructor. Destroys XOTcl object physically from the memory.
Can be overloaded for customized destruction process.
<@p>
In XOTcl objects are not directly destroyed, when a destroy is
@@ -1220,7 +1220,7 @@
callstack, for each object marked as destroyed, the reference count is
decremented by one. When no more references to the object are on the
callstack the object is physically destroyed. This way we can assure
- that objects are not accessed with [self] in running methods after
+ that objects are not accessed with [self] in running methods after
they are physically destroyed.
}
return "empty string"
@@ -1230,14 +1230,14 @@
?args? "instfilter specification"
} {
Description {
- If <@tt>$args@tt> is one argument, it specifies a list of
- instfilters to
+ If <@tt>$args@tt> is one argument, it specifies a list of
+ instfilters to
be set. Every filter must be an XOTcl proc/instproc within
the object scope.
If <@tt>$args@tt> it has more argument, the first one specifies the
- action. Possible values are <@tt>assign@tt>, <@tt>get@tt>,
+ action. Possible values are <@tt>assign@tt>, <@tt>get@tt>,
<@tt>add@tt> or <@tt>delete@tt>, it modifies the current
- settings as indicated. For more details, check the
+ settings as indicated. For more details, check the
tutorial.
}
return "if <@tt>$args@tt> return empty current instfilters, otherwise empty"
@@ -1251,8 +1251,8 @@
} {
description {
Add conditions to guard a filter registration point. The filter
- is only executed, if the guards are true. Otherwise we ignore the
- filter. If no guards are given, we always execute the filter.
+ is only executed, if the guards are true. Otherwise we ignore the
+ filter. If no guards are given, we always execute the filter.
}
return "empty string"
}
@@ -1266,43 +1266,43 @@
} {
Description {
- Register a method for the instances of a class (similar to an instproc)
- for forwarding calls to a callee (target Tcl command,
- other object).
- When the forwarder method is called, the actual arguments
- of the invocation are appended to the specified arguments. In callee an
- arguments certain substitutions can take place:
+ Register a method for the instances of a class (similar to an instproc)
+ for forwarding calls to a callee (target Tcl command,
+ other object).
+ When the forwarder method is called, the actual arguments
+ of the invocation are appended to the specified arguments. In callee an
+ arguments certain substitutions can take place:
- %proc: substituted by name of the forwarder method
- - %self: substitute by name of the object
- - %1: substitute by first argument of the invocation
- - {%@POS value}: substitute the specified value in the argument list
- on position POS, where POS can be a positive or negative integer
- or end. Positive integers specify the position from the begin
- of the list, while negative integer specify the position from the end.
-
- {%argclindex LIST}: take the nth argument of the specified list as
- substitution value, where n is the number of arguments from the
- invocation.
-
- %%: a single percent.
- - %Tcl-command: command to be executed; substituted by result.
+ - %self: substitute by name of the object
+ - %1: substitute by first argument of the invocation
+ - {%@POS value}: substitute the specified value in the argument list
+ on position POS, where POS can be a positive or negative integer
+ or end. Positive integers specify the position from the begin
+ of the list, while negative integer specify the position from the end.
+
- {%argclindex LIST}: take the nth argument of the specified list as
+ substitution value, where n is the number of arguments from the
+ invocation.
+
- %%: a single percent.
+ - %Tcl-command: command to be executed; substituted by result.
Additionally each argument can be prefixed by the positional prefix %@POS
- (note the delimiting space at the end) that can be used to specify an
- explicit position. POS can be a positive or negative integer or the word
- end. The positional arguments are evaluated from left to
+ (note the delimiting space at the end) that can be used to specify an
+ explicit position. POS can be a positive or negative integer or the word
+ end. The positional arguments are evaluated from left to
right and should be used in ascending order. valid Options are:
- - -objscope causes the target to be evaluated in the scope
- of the object,
- - -methodprefix string inserts the specified prefix
- in front of the second argument of the invocation,
- - -default is used for default method names (only
- in connection with %1)
- - -earlybinding: look up the function
- pointer of the called Tcl command at
- definition time of the forwarder instead of invocation time.
- This option should only be used
- for calling C-implemented Tcl commands, no procs etc.);
- - -verbose
: print the substituted command to stderr
- before executing
+ - -objscope causes the target to be evaluated in the scope
+ of the object,
+ - -methodprefix string inserts the specified prefix
+ in front of the second argument of the invocation,
+ - -default is used for default method names (only
+ in connection with %1)
+ - -earlybinding: look up the function
+ pointer of the called Tcl command at
+ definition time of the forwarder instead of invocation time.
+ This option should only be used
+ for calling C-implemented Tcl commands, no procs etc.);
+ - -verbose
: print the substituted command to stderr
+ before executing
See tutorial
for detailed examples.
@@ -1316,8 +1316,8 @@
invariantList "Body of invariants for the class"
} {
Description {
- Specify invariants for the class. These are inherited by
- sub-classes. The invariants must hold for all instances.
+ Specify invariants for the class. These are inherited by
+ sub-classes. The invariants must hold for all instances.
All assertions are a list of ordinary Tcl conditions.
}
return "empty string"
@@ -1327,12 +1327,12 @@
?args? "instmixin specification"
} {
Description {
- If <@tt>$args@tt> is one argument, it specifies a list of instmixins to
+ If <@tt>$args@tt> is one argument, it specifies a list of instmixins to
be set. Every instmixin must be a defined class.
If <@tt>$args@tt> has more argument, the first one specifies the
- action. Possible values are <@tt>assign@tt>, <@tt>get@tt>,
+ action. Possible values are <@tt>assign@tt>, <@tt>get@tt>,
<@tt>add@tt> or <@tt>delete@tt>, it modifies the current
- settings as indicated. For more details, check the
+ settings as indicated. For more details, check the
tutorial.
}
return "if <@tt>$args@tt> empty return current instmixins, otherwise empty"
@@ -1344,7 +1344,7 @@
} {
description {
Add a getter/setter command for an instance variable with the
- specified name. This method is used for example by the
+ specified name. This method is used for example by the
<@A href="#Class-parameter">parameter@A> method.
Example: <@br>
<@pre class='code'>
@@ -1369,7 +1369,7 @@
<@br>
Optionally assertions may be given by two additional arguments.
Therefore, to specify only post-assertions an empty pre-assertion list
- must be given. All assertions are a list
+ must be given. All assertions are a list
of ordinary Tcl conditions.
<@br>
When instproc is called with an empty argument list and an empty
@@ -1388,7 +1388,7 @@
HTTP new @pre>
creates ::xotcl::__#0, a subsequent call creates ::xotcl::__#1, ...<@br>
If <@tt>-childof obj@tt> is specified, the new object is
- created as a child of the specified object.
+ created as a child of the specified object.
}
return "new object name"
}
@@ -1400,17 +1400,17 @@
Specify parameters automatically created for each instance.
Parameters denote instance variables which are available on each class instance
and that have a getter/setter method with their own name.
- Parameters are specified in a parameter list of the form
+ Parameters are specified in a parameter list of the form
{p1 p2 ... pn}.
- p1 ... pn may either be parameter names or definitions of the form
- {parameterName defaultValue}.
+ p1 ... pn may either be parameter names or definitions of the form
+ {parameterName defaultValue}.
If a default value is given, that parameter
- is created during creation process of the instance object, otherwise
- only the getter/setter method is created (and the parameter does not
- exist). The getter/setter method has the same name as the
- parameter. It gets and returns the parameter, if no
- argument is specified. With one argument, the parameter is set
- to the argument value.
+ is created during creation process of the instance object, otherwise
+ only the getter/setter method is created (and the parameter does not
+ exist). The getter/setter method has the same name as the
+ parameter. It gets and returns the parameter, if no
+ argument is specified. With one argument, the parameter is set
+ to the argument value.
<@br>
Example:
<@pre class='code'>
@@ -1423,16 +1423,16 @@
class "parameter class name"
} {
description {
- Set the parameter class.
- The parameter class specifies how parameters are stored and
- maintained internally. Per default, a method "default" is called,
- to set the parameter with a default value. I.e.,
+ Set the parameter class.
+ The parameter class specifies how parameters are stored and
+ maintained internally. Per default, a method "default" is called,
+ to set the parameter with a default value. I.e.,
<@pre class='code'>
Class Car -parameter {
{doors 4}
}<@/pre>
- is a short form for
+ is a short form for
<@pre class='code'>
Class Car -parameter {
{doors -default 4}
@@ -1468,8 +1468,8 @@
} {
description {
Specify super-classes for a class. "superclass" changes the list
- of superclasses dynamically to <@tt>classList@tt>.
- The method returns the current value of superclass,
+ of superclasses dynamically to <@tt>classList@tt>.
+ The method returns the current value of superclass,
when it is called without arguments.
}
return "if <@tt>classList@tt> is not specified return superclass(es), otherwise empty"
@@ -1479,11 +1479,11 @@
?args? "arbitrary arguments"
} {
description {
- Standard unknown mechanism. This mechanism is always triggered when
- XOTcl does not know a method called on an object. Supposed that
- there is no method with the called name, XOTcl looks up the method
- "unknown" (which is found on the Class Object) and executes it.
- The standard unknown-mechanism of XOTcl calls create with all
+ Standard unknown mechanism. This mechanism is always triggered when
+ XOTcl does not know a method called on an object. Supposed that
+ there is no method with the called name, XOTcl looks up the method
+ "unknown" (which is found on the Class Object) and executes it.
+ The standard unknown-mechanism of XOTcl calls create with all
arguments stepping one step to the right; in the general case:
<@pre class='code'>
ClassName create ClassName ?args?<@/pre>
@@ -1509,16 +1509,16 @@
"name" "name of class to be created"
} {
description {
- This method is called, whenever XOTcl references a class,
+ This method is called, whenever XOTcl references a class,
which is not defined yet. In the following example:
- <@tt>Class C -superclass D@tt>
+ <@tt>Class C -superclass D@tt>
D is not defined. Therefore <@tt>Class __unknown D@tt>
is called. This callback can be used to perform auto-loading
- of classes. After this call, XOTcl tries again to
+ of classes. After this call, XOTcl tries again to
resolve D. If it succeeds, XOTcl will continue; otherwise,
an error is generated.
<@p>
- This method is called on mixin/instmixin definition calls,
+ This method is called on mixin/instmixin definition calls,
istype, ismixin, class, superclass and parameterclass
}
return "empty string"
@@ -1527,17 +1527,17 @@
@ Class ::xotcl::Slot -superclass Object {
description {
A slot is a meta-object that manages changes of properties of
- objects. A property is either an attribute or a relation
- (defined in the system slots).
- The predefined system slots are class,
- superclass, mixin, instmixin,
+ objects. A property is either an attribute or a relation
+ (defined in the system slots).
+ The predefined system slots are class,
+ superclass, mixin, instmixin,
filter, instfilter. These slots appear
as methods of Object or Class.
-
+
The slots provide a common query and setting interface.
- Every multivalued slot provides e.g. a method add
+ Every multivalued slot provides e.g. a method add
to add a value to the list of values, and a method delete
- which removes it. See for example the documentation of the slot
+ which removes it. See for example the documentation of the slot
mixin.
Parameters:
@@ -1551,15 +1551,15 @@
-per-object | specify whether a slot should be used per class or per object; note that there is a restricted usage if applied per class, since defaults etc, work per initialization |
- For more details, consult the
+
For more details, consult the
tutorial.
}
}
@ Class Attribute -superclass ::xotcl::Slot {
description {
Attribute slots are used to manage the setting and querying
of instance variables.
-
+
Parameters:
-default | specify a default value |
@@ -1581,8 +1581,8 @@
@pre>
The slot parameters default, initcmd and
- valuecmd have to be used mutually exclusively.
- For more details, consult the
+ valuecmd have to be used mutually exclusively.
+ For more details, consult the
tutorial.
}
Index: library/xotcl/library/lib/metadataAnalyzer.xotcl
===================================================================
diff -u -rf934951db464db1a6f39ac98290ecde17a466cd7 -rb9fcdec2a4d614ee624d548218df4719cdb27049
--- library/xotcl/library/lib/metadataAnalyzer.xotcl (.../metadataAnalyzer.xotcl) (revision f934951db464db1a6f39ac98290ecde17a466cd7)
+++ library/xotcl/library/lib/metadataAnalyzer.xotcl (.../metadataAnalyzer.xotcl) (revision b9fcdec2a4d614ee624d548218df4719cdb27049)
@@ -494,7 +494,7 @@
puts stderr "Unknown @ metadata: '$args'"
}
@ AnalyzerCmd @ {
- description {Recreate @ with metadata analyis funtionality.}
+ description {Recreate @ with metadata analyis functionality.}
}
AnalyzerCmd create ::xotcl::@
Index: library/xotcl/library/lib/xodoc.xotcl
===================================================================
diff -u -r073177c8b1304443107efeeb0c334e9477346778 -rb9fcdec2a4d614ee624d548218df4719cdb27049
--- library/xotcl/library/lib/xodoc.xotcl (.../xodoc.xotcl) (revision 073177c8b1304443107efeeb0c334e9477346778)
+++ library/xotcl/library/lib/xodoc.xotcl (.../xodoc.xotcl) (revision b9fcdec2a4d614ee624d548218df4719cdb27049)
@@ -213,7 +213,7 @@
@ XODoc proc documentFileAsHTML {
file "filename of the xotcl file to be documented"
- docdir "directory to which the html file is written"
+ docdir "directory to which the HTML file is written"
} {
description "Uses the xoDoc package to produce an HTML documentation of
a specified file ***.xotcl. The file is written to ***.html
@@ -354,7 +354,7 @@
}
@ XODoc instproc printHTML {
- name "name of the html document"
+ name "name of the HTML document"
} {
description "Create HTML documentation object from metadata token"
}
@@ -391,7 +391,7 @@
}
@ XODoc instproc writeFile {
- filename "file name destination" name "name of the html document"
+ filename "file name destination" name "name of the HTML document"
} {
description "Create HTML docuemntation from metadata token and write to file "
}
Index: library/xotcl/tests/slottest.xotcl
===================================================================
diff -u -r542f9eada7981ba0f968374ff45ea9d2d44dd9a0 -rb9fcdec2a4d614ee624d548218df4719cdb27049
--- library/xotcl/tests/slottest.xotcl (.../slottest.xotcl) (revision 542f9eada7981ba0f968374ff45ea9d2d44dd9a0)
+++ library/xotcl/tests/slottest.xotcl (.../slottest.xotcl) (revision b9fcdec2a4d614ee624d548218df4719cdb27049)
@@ -10,7 +10,7 @@
# - generalization of slots to have different kind of domains and managers
# - slots for objects and classes (slot parameter 'per-object' true|false,
# when to used on a class object)
-# - works for mixins/filters/class/superclass (e.g ... superclass add ::M)
+# - works for mixins/filters/class/superclass (e.g. ... superclass add ::M)
# - defaultcmd and valuecmd
# defaultcmd: is executed when the instance variable is read the first time
# valuecmd: is executed whenever the instance variable is read