Index: xotcl/doc/langRef.xotcl =================================================================== diff -u -r638782f84b31e4ebfd00529381e280c70f9950bc -r1670c4220da681d286eae8acbac8745dd37296f9 --- xotcl/doc/langRef.xotcl (.../langRef.xotcl) (revision 638782f84b31e4ebfd00529381e280c70f9950bc) +++ xotcl/doc/langRef.xotcl (.../langRef.xotcl) (revision 1670c4220da681d286eae8acbac8745dd37296f9) @@ -1,4 +1,4 @@ -# $Id: langRef.xotcl,v 1.3 2004/08/17 10:12:55 neumann Exp $ +# $Id: langRef.xotcl,v 1.4 2004/09/21 11:41:43 neumann Exp $ package provide XOTcl-langRef 1.3 package require Tcl @@ -63,7 +63,7 @@ <@/p> } - date { $Date: 2004/08/17 10:12:55 $ } + date { $Date: 2004/09/21 11:41:43 $ } } ## @@ -362,10 +362,10 @@ Introspection of objects. The following options can be specified: <@ul> <@li><@TT>objName info args method@TT>: - Returns the arguments of the specified method. + Returns the arguments of the specified proc (object specific method). <@li><@TT>objName info body method@TT>: - Returns the body of the specified method. + Returns the body of the specified proc (object specific method). <@li><@TT>objName info class ?classname?@TT>: Returns the name of the class of the current object, if classname was @@ -381,7 +381,8 @@ it returns all commands that match the pattern. <@li><@TT>objName info default method arg var@TT>: Returns 1 if the - argument <@TT>arg@TT> of the method <@TT>method@TT> has a default + argument <@TT>arg@TT> of the proc (object specific 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. @@ -810,6 +811,7 @@ 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, @@ -819,19 +821,6 @@ <@li><@TT>ClassName info classparent@TT>: Returns the class ClassName is nesting to. - <@li><@TT>ClassName info instdefault method arg var@TT>: - Returns 1 if the argument <@TT>arg@TT> of the instance method - <@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 - (<@TT> ClassName info instfilter -guards@TT>). - - <@li><@TT>objName info instfilterguard name@TT>: Returns the guards - for instfilter identified by name. - <@li><@TT>ClassName info heritage ?pattern?@TT>: Returns a list of all classes in the precedence order of the class hierarchy. @@ -842,24 +831,37 @@ If pattern is specified, only matching values are returned. <@li><@TT>ClassName info instargs method@TT>: - Returns the arguments of the specified method. + Returns the arguments of the specified instproc (instance method). <@li><@TT>ClassName info instbody method@TT>: - Returns the body of the specified method. + 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 is specified it returns all commands that match the pattern. + <@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 + 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 + (<@TT> ClassName info instfilter -guards@TT>). + + <@li><@TT>objName info instfilterguard name@TT>: Returns the guards + for instfilter identified by name. + <@li><@TT>ClassName info instinvar@TT>: Returns class invariants. - <@li><@TT>ClassName info instmixin methodName@TT>: returns list of - non-positional args of methodName - <@li><@TT>ClassName info instmixin@TT>: Returns the list of instmixins of this class. + <@li><@TT>ClassName info instnonposargs methodName@TT>: returns list of + non-positional args of methodName + <@li><@TT>ClassName info instpost methodName@TT>: Returns post assertions of methodName. Index: xotcl/doc/tutorial.html =================================================================== diff -u -raf574e7e934986818f402ee382f7cdab57feed39 -r1670c4220da681d286eae8acbac8745dd37296f9 --- xotcl/doc/tutorial.html (.../tutorial.html) (revision af574e7e934986818f402ee382f7cdab57feed39) +++ xotcl/doc/tutorial.html (.../tutorial.html) (revision 1670c4220da681d286eae8acbac8745dd37296f9) @@ -1,5 +1,5 @@ - +
Returns the arguments of the specified method.
+Returns the arguments of the specified proc (object specific method).
Returns the body of the specified method.
+Returns the body of the specified proc.
Returns 1 if the argument arg of - the specified method has a default value, otherwise 0. If + the specified proc has a default value, otherwise 0. If the default value exists it is stored in var.
Options for the into method on classes
+Options for the info method on classes
className info heritage ?pattern? @@ -1115,24 +1115,34 @@ | ||
className info instargs methodName | -Returns the arguments of the specified method. + | Returns the arguments of the specified instproc + (method provided to objects). |
className info instbody methodName | -Returns the body of the specified method. + | Returns the body of the specified instproc. |
className info instcommands ?pattern? | Returns all commands defined on the class, if pattern was not specified, otherwise it returns all - commands that match the pattern. + commands provided to objects that match the pattern. |
|
className info instdefault methodName arg var + | +
+ Returns 1 if the argument arg of + the specified instproc has a default value, otherwise 0. If + the default value exists it is stored in var. + |
+ |
className info subclass ?className2? | Returns a list of all subclasses of the class, if @@ -3403,7 +3413,7 @@ With this definitions, the following call is rewritten as indicated in the comment. - x1 Info class When a forwarder is defined, the callee (the target command) can be |