doc/langRef.xotcl doc/langRef.xotcl


Package/File Information

Package provided: XOTcl 0.85
Package required: Tcl

Defined Objects/Classes:
Filename: doc/langRef.xotcl

Description: XOTcl language reference. Describes predefined objects and classes.
Predefined primitives: XOTcl contains two predefined primitives:

self computes callstack related information. It can be used in the following ways:

  • self - 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 ``Can't find self''.
  • self class - the self command with a given argument class returns the name of the 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.
  • self proc - the self command with a given argument proc returns the name of the currently executing proc or instproc.
  • self callingclass: Returns class name of the class that has called the executing method.
  • self callingobject: Returns object name of the object that has called the executing method.
  • self callingproc: Returns proc name of the method that has called the executing method.
  • self calledclass: Returns class name of the class holds the target proc (in mixins and filters).
  • self calledproc: Returns method name of the target proc (only applicable in a filter).
  • self next: Return the "next" method on the path as a string.
  • self filterreg: 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'.

next executes the "next" method on the precendence order and return with the result.

Date: $Date: 2001/03/09 13:21:13 $


Class: Class

Class: Class
Heritage: Object
Procs/Instprocs: alloc, create, info, instdestroy, instfilter, instfilterappend, instfilterguard, instinvar, instmixin, instmixinappend, instparametercmd, instproc, insttclcmd, new, newChild, newChildOf, parameter, parameterclass, recreate, superclass, unknown.
Description: This meta-class holds the pre-defined methods available for all XOTcl classes.

Instprocs


Class: Object

Class: Class
Procs/Instprocs: abstract, append, array, autoname, check, class, cleanup, configure, copy, destroy, eval, exists, filter, filterappend, filterguard, filtersearch, getExitHandler, getGuardedScope, incr, info, instvar, invar, isclass, ismetaclass, isobject, istype, lappend, mixin, mixinappend, move, parametercmd, proc, procsearch, requireNamespace, set, setExitHandler, trace, unset, vwait.
Description: This class holds the pre-defined methods available for all XOTcl objects. All these methods are also available on classes.

Instprocs

Procs


Back to index page.