Index: .gitignore
===================================================================
diff -u -N -rc6a4d70c3d408c0ee4698e67043ef9c8e3f1c1db -r2111020b49da8ce57758e51accf0b6073037f0d2
--- .gitignore (.../.gitignore) (revision c6a4d70c3d408c0ee4698e67043ef9c8e3f1c1db)
+++ .gitignore (.../.gitignore) (revision 2111020b49da8ce57758e51accf0b6073037f0d2)
@@ -7,3 +7,5 @@
xotclsh
pkgIndex.tcl
Makefile
+xotclConfig.sh
+CVS
Index: COPYRIGHT
===================================================================
diff -u -N -rc72f9f638677608fab1502cd696c8f2d6b2952f9 -r2111020b49da8ce57758e51accf0b6073037f0d2
--- COPYRIGHT (.../COPYRIGHT) (revision c72f9f638677608fab1502cd696c8f2d6b2952f9)
+++ COPYRIGHT (.../COPYRIGHT) (revision 2111020b49da8ce57758e51accf0b6073037f0d2)
@@ -1,6 +1,6 @@
* XOTcl - Extended OTcl
*
- * Copyright (C) 1999-2001 Gustaf Neumann (a), Uwe Zdun (b)
+ * Copyright (C) 1999-2008 Gustaf Neumann (a), Uwe Zdun (b)
*
* (a) Vienna University of Economics and Business Administration
* Dept. of Information Systems / New Media
Index: ChangeLog
===================================================================
diff -u -N -r4dd2595d98574faaac87f5dd33b542516fdff5df -r2111020b49da8ce57758e51accf0b6073037f0d2
--- ChangeLog (.../ChangeLog) (revision 4dd2595d98574faaac87f5dd33b542516fdff5df)
+++ ChangeLog (.../ChangeLog) (revision 2111020b49da8ce57758e51accf0b6073037f0d2)
@@ -1,3 +1,346 @@
+Method ::xotcl::Object->__exitHandler became ::xotcl::__exitHandler
+
+2009-06-14
-
- - Back to index page. - --
- - - Index: doc/MemStorage-xotcl.html =================================================================== diff -u -N --- doc/MemStorage-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/MemStorage-xotcl.html (revision 0) @@ -1,42 +0,0 @@ - - - - --
-
- - Back to index page. - --
- - - Index: doc/MultiStorage-xotcl.html =================================================================== diff -u -N --- doc/MultiStorage-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/MultiStorage-xotcl.html (revision 0) @@ -1,42 +0,0 @@ - - - - --
-
- - Back to index page. - --
- - - Index: doc/Persistence-xotcl.html =================================================================== diff -u -N --- doc/Persistence-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/Persistence-xotcl.html (revision 0) @@ -1,358 +0,0 @@ - - - - --
- Description: - | -- - Persistent store for XOTcl objects with Eager and Lazy persistence. - Take a look at "persistenceExample.xotcl" for exmaple of usage. - - | -
- - - -
- Description: - | -
-
- A persistent store requires a persistent manager. The persistent
- manager implements the Storage interface via storage mixin. With
- the parameter "dbPackage" we can specify which storage will be used.
- The persistent manager than tries to load the package
- "xotcl::${dbPackage}Storage". Default is Sdbm.
-
- Example:
- - PersistenceMgr pmgr -persistenceDir . -persistenceFile example-db -- - - |
-
- - - -
- Description: - | -
-
- Superclass or mixin class for all persistent objects. Normally
- subclasses are used as mixins or instmixins on object, like:
- - o mixin Persistent=Eager - p mixin Persistent=Lazy -- - |
-
- Arguments: - | -- args: persistent manager name - | -
- Description: - | -
-
- Specify which persistence manager to use for [self] object, like:
- - o persistenceMgr pmgr -- Each persistent object must have a persistence manager specified, - before vars can be made persistent. - - |
-
- Description: - | -- - Returns list of persistent vars. - - | -
- Arguments: - | -- list: persistent variables - | -
- Description: - | -
-
- Make a list of object variables persistent. If a persistent
- DB exists, the values are read from this DB, overwriting the current value.
- E.g.:
- - o persistent {x y} -- - - |
-
- Arguments: - | -- list: persistent variables - | -
- Description: - | -- - Initialize all data in the list as empty strings, - if they do not exist yet, and then make them persistent - using the 'persistent' method - - | -
- Arguments: - | -- list: persistent variables - | -
- Description: - | -- - Make a list of object variables not persistent. - - | -
- Description: - | -- - Build a Tcl script of "set ..." statements reflecting the current situation in the database. - - | -
- - - -
- Description: - | -- - Eager persistence strategy. Store everything at the same moment to the database - - | -
- - - -
- Description: - | -- - Lazy persistence strategy. Store everything on object destroy (or program termination). - - | -
-
- - Back to index page. - --
- - - Index: doc/Script-xotcl.html =================================================================== diff -u -N --- doc/Script-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/Script-xotcl.html (revision 0) @@ -1,93 +0,0 @@ - - - - --
- Description: - | -- - A small package to instantiate an object, that - represents a script. - - | -
- - - -
- Description: - | -
-
- An object of type Script becomes automatically the command
- line arguments evaluated as "-" method calls during creation, e.g.
- - Script s -set r 5 -- and a call with cmd-line "-set v 6" of the script, results in an - object s with two vars set: r to 5, and v to 6. - - |
-
-
- - Back to index page. - --
- - - Index: doc/Serializer-xotcl.html =================================================================== diff -u -N --- doc/Serializer-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/Serializer-xotcl.html (revision 0) @@ -1,384 +0,0 @@ - - - - --
- Description: - | -- - This package provides the class Serializer, which can be used to - generate a snapshot of the current state of the workspace - in the form of XOTcl source code. - - | -
- Authors: - | -- - Gustaf Neumann, Gustaf.Neumann@wu-wien.ac.at - - | -
- Date: - | -- $Date: 2007/10/05 09:06:00 $ - | -
- - - -
- Arguments: - | -- entity: Object or Class - | -
- Description: - | -- - Serialize the specified object or class. - - | -
- Return: - | -- Object or Class with all currently defined methods, - variables, invariants, filters and mixins - | -
- Arguments: - | -- ?-ignoreVarsRE RE?: provide regular expression; matching vars are ignored - | -
- - | -- ?-ignore obj1 obj2 ...?: provide a list of objects to be omitted - | -
- Description: - | -
-
- Serialize all objects and classes that are currently
- defined (except the specified omissions and the current
- Serializer object).
- Examples: Serializer all -ignoreVarsRE {::b$}- Do not serialize any instance variable named b (of any object). - Serializer all -ignoreVarsRE {^::o1::.*text.*$|^::o2::x$}- Do not serialize any variable of c1 whose name contains - the string "text" and do not serialze the variable x of o2. - Serializer all -ignore obj1 obj2 ...- do not serizalze the specified objects - - |
-
- Return: - | -- script - | -
- Arguments: - | -- objs: Objects to be serialized - | -
- - | -- ?-ignoreVarsRE RE?: provide regular expression; matching vars are ignored - | -
- - | -- ?-ignore obj1 obj2 ...?: provide a list of objects to be omitted - | -
- - | -- ?-map list?: translate object names in serialized code - | -
- Description: - | -
-
- Serialize object with all child objects (deep operation)
- except the specified omissions. For the description of
- ignore and igonoreVarsRE see
- Serizalizer all. map can be used
- in addition to provide pairs of old-string and new-string
- (like in the tcl command string map). This option
- can be used to regenerate the serialized object under a different
- object or under an different name, or to translate relative
- object names in the serialized code. - - Examples: - Serializer deepSerialize ::a::b::c -map {::a::b ::x::y}- Serialize the object c which is a child of a::b; - the object will be reinitialized as object ::x::y::c, - all references ::a::b will be replaced by ::x::y. - - Serializer deepSerialize ::a::b::c -map {::a::b [self]}- The serizalized object can be reinstantiated under some current object, - under which the script is evaluated. - - Serializer deepSerialize ::a::b::c -map {::a::b::c ${var}}- The serizalized object will be reinstantiated under a name specified - by the variable var in the recreation context. - - |
-
- Return: - | -- script - | -
- Arguments: - | -- object: object or class - | -
- - | -- method: name of method - | -
- - | -- prefix: either empty or 'inst' (latter for instprocs) - | -
- Description: - | -
-
- Serialize the specified method. In order to serialize
- an instproc, prefix should be 'inst'; to serialze
- procs, it should be empty. - - Examples: - Serializer methodSerialize Serializer deepSerialize ""- This command serializes the proc deepSerialize - of the Class Serializer. - - Serializer methodSerialize Serializer serialize inst- This command serializes the instproc serialize - of the Class Serializer. - - |
-
- Return: - | -- Script, which can be used to recreate the specified method - | -
- Arguments: - | -- list: list of methods of the form 'object proc|instproc methodname' - | -
- Description: - | -
-
- This method can be used to specify methods that should be
- exported in every Serializer all. The rationale
- behind this is that the serializer does not serialize objects
- from the ::xotcl:: namespace, which is used for XOTcl internals
- and volatile objects. It is however often useful to define
- methods on ::xotcl::Class or ::xotcl::Objects, which should
- be exported. One can export procs, instprocs, forward and instforward - Example: - Serializer exportMethods { - ::xotcl::Object instproc __split_arguments - ::xotcl::Object instproc __make_doc - ::xotcl::Object instproc ad_proc - ::xotcl::Class instproc ad_instproc - ::xotcl::Object forward expr - }- - |
-
-
- - Back to index page. - --
- - - Index: doc/Storage-xotcl.html =================================================================== diff -u -N --- doc/Storage-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/Storage-xotcl.html (revision 0) @@ -1,398 +0,0 @@ - - - - --
- Description: - | -- - Simple generic storage interface for hashtable-like (persistent) - storages. There are several different existing stores, including - a memory storage, a GDBM storage, a SDBM storage, and a - TextFile storage. - - | -
- Date: - | -- $Date: 2005/09/09 21:09:01 $ - | -
- - - -
- Description: - | -- - Abstract storage interface class (superclass of all storages). - - | -
- Arguments: - | -- filename: database filename (or filename base, if more - than one file has to be created) - | -
- Description: - | -- - Each storage object represents exactly one database table. The db - has to be opened, before it can it used. If it is not opened all - other methods return errors. - - | -
- Return: - | -- empty string - | -
- Description: - | -- - Close associated database. - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- key: Key to be searched for. - | -
- Description: - | -- - Search for a key whether it exists or not. - - | -
- Return: - | -- 1, if key exists in the database, otherwise 0 - | -
- Arguments: - | -- key: Key to be set. - | -
- - | -- ?value?: Optional value that might be set - | -
- Description: - | -- - Set or query a database key in the same way as Tcl's set functions. - - | -
- Return: - | -- Key value. - | -
- Arguments: - | -- key: Key to be unset. - | -
- Description: - | -- - Unset a database key in the same way as Tcl's unset functions. - - | -
- Return: - | -- empty string - | -
- Description: - | -- - Return a list of keys in the database (functions in the same - way as Tcl's array names) - - | -
- Return: - | -- List of keys in the db. - | -
- Description: - | -- - Start a traversal of the database, starting with any key. - - | -
- Return: - | -- Name of first key. - | -
- Description: - | -- - Proceed with the db traversal. Requires a firstkey before - first usage, otherwise it returns an error. - - | -
- Return: - | -- Name of next key, if one exists. Otherwise an empty string is returned. - | -
- Description: - | -- - Create a childStore according to a preference list depending on - which storages are available. Currently the preference list has - the following order: Gdbm, Sdbm and TextFile. - - | -
- Return: - | -- name of the created storage object. - | -
-
- - Back to index page. - --
- - - Index: doc/TclGdbmStorage-xotcl.html =================================================================== diff -u -N --- doc/TclGdbmStorage-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/TclGdbmStorage-xotcl.html (revision 0) @@ -1,42 +0,0 @@ - - - - --
-
- - Back to index page. - --
- - - Index: doc/TextFileStorage-xotcl.html =================================================================== diff -u -N --- doc/TextFileStorage-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/TextFileStorage-xotcl.html (revision 0) @@ -1,42 +0,0 @@ - - - - --
-
- - Back to index page. - --
- - - Index: doc/UNIVERSAL-xotcl.html =================================================================== diff -u -N --- doc/UNIVERSAL-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/UNIVERSAL-xotcl.html (revision 0) @@ -1,64 +0,0 @@ - - - - --
- Description: - | -
-
- This is a demo of a Webserver that presents the contents of
- an RDF source file in a friendly and easy readable manner.
- - The RDF file is parsed first into triples which - are added to the resource database RDFdb. This RDFdb used in this - example replaces the standard triple database of xoRDF by an - application specific version, which is easier to process. The triple - database is the source of the Catalog, which displays a short, easy to read - summary of the entries. The database is used as well for the "detailed - view", which presents all the data of the triples through nested HTML tables. - - The demo program uses either HTTP or HTTPS (in which case you will require - the SSL/TLS extension of Tcl). - - |
-
-
- - Back to index page. - --
- - - Index: doc/adapter-xotcl.html =================================================================== diff -u -N --- doc/adapter-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/adapter-xotcl.html (revision 0) @@ -1,54 +0,0 @@ - - - - --
- Description: - | -- - Simple adapter pattern meta-class taken from the paper - 'Filters as a Language Support for Design Patterns in - Object-Oriented Scripting Languages'. - - | -
-
- - Back to index page. - --
- - - Index: doc/adapterExample-xotcl.html =================================================================== diff -u -N --- doc/adapterExample-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/adapterExample-xotcl.html (revision 0) @@ -1,54 +0,0 @@ - - - - --
- Description: - | -- - Simple adapter pattern example class (FTP requests) taken from the paper - 'Filters as a Language Support for Design Patterns in - Object-Oriented Scripting Languages'. - - | -
-
- - Back to index page. - --
- - - Index: doc/changeXOTclVersion-xotcl.html =================================================================== diff -u -N --- doc/changeXOTclVersion-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/changeXOTclVersion-xotcl.html (revision 0) @@ -1,42 +0,0 @@ - - - - --
-
- - Back to index page. - --
- - - Index: doc/composite-xotcl.html =================================================================== diff -u -N --- doc/composite-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/composite-xotcl.html (revision 0) @@ -1,54 +0,0 @@ - - - - --
- Description: - | -- - Simple composite pattern meta-class taken from the paper - 'Filters as a Language Support for Design Patterns in - Object-Oriented Scripting Languages'. - - | -
-
- - Back to index page. - --
- - - Index: doc/compositeExample-xotcl.html =================================================================== diff -u -N --- doc/compositeExample-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/compositeExample-xotcl.html (revision 0) @@ -1,55 +0,0 @@ - - - - --
- Description: - | -- - Simple Graphics example of the composite pattern taken from the paper - 'Filters as a Language Support for Design Patterns in - Object-Oriented Scripting Languages'. They demonstrate instfilters, - filter chains and filter inheritance. - - | -
-
- - Back to index page. - --
- - - Index: doc/ftp-xotcl.html =================================================================== diff -u -N --- doc/ftp-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/ftp-xotcl.html (revision 0) @@ -1,50 +0,0 @@ - - - - --
- Description: - | -- A tiny FTP client - | -
-
- - Back to index page. - --
- - - Index: doc/htmllib-xotcl.html =================================================================== diff -u -N --- doc/htmllib-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/htmllib-xotcl.html (revision 0) @@ -1,73 +0,0 @@ - - - - --
- Description: - | -- - This package provides the class HtmlBuilder, which can be used to - generate HTML documents, or a part of a document. - - | -
- Authors: - | -- - Antti Salonen, as@fishpool.fi - - | -
- Date: - | -- - $Date: 2006/09/27 08:12:40 $ - - | -
-
- - Back to index page. - --
- - - Index: doc/index.html =================================================================== diff -u -N -rc72f9f638677608fab1502cd696c8f2d6b2952f9 -r2111020b49da8ce57758e51accf0b6073037f0d2 --- doc/index.html (.../index.html) (revision c72f9f638677608fab1502cd696c8f2d6b2952f9) +++ doc/index.html (.../index.html) (revision 2111020b49da8ce57758e51accf0b6073037f0d2) @@ -10,10 +10,11 @@Index: doc/langRef-xotcl.html =================================================================== diff -u -N --- doc/langRef-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/langRef-xotcl.html (revision 0) @@ -1,3748 +0,0 @@ - - - -
--
- Description: - | -- - XOTcl language reference. Describes predefined objects and classes. - - | -
- Predefined primitives: - | -
-
- XOTcl contains the following predefined primitives (Tcl commands):
-
|
-
- Date: - | -- $Date: 2006/10/04 20:40:23 $ - | -
- - - -
- Description: - | -
-
- A slot is a meta-object that manages property-changes of
- objects. A property is either an attribute or a role of an
- relation (e.g. in 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 - to add a value to the list of values, and a method delete - which removes it. See for example the documentation of the slot - mixin. - - Parameters:-
For more details, consult the - tutorial. - - |
-
- - - -
- Description: - | -
-
- Attribute slots are used to manage the setting and querying
- of instance variables.
-
- Parameters: -
Example of a class definition with three attribute slots: -- Class Person -slots { - Attribute name - Attribute salary -default 0 - Attribute projects -default {} -multivalued true - } - Person p1 -name "John Doe" -- - The slot parameters default, initcmd and - valuecmd have to be used mutually exclusively. - For more details, consult the - tutorial. - - - |
-
- - - -
- Description: - | -- - This meta-class holds the pre-defined methods available for all XOTcl - classes. - - | -
- Arguments: - | -- obj: new obj/class name - | -
- - | -- ?args?: arguments passed during creation - | -
- Description: - | -- - Allocate (create) an uninitialized object or class. Typically, alloc - is called automatically by create - to allocate an uninitialized object or class. - In contrast to alloc, create also - initializes and configures the object. - The method alloc can be used by a programmer who may want to - create uninitialized objects/classes. - - | -
- Return: - | -- fully qualified name of created instance - | -
- Description: - | -- - Compute all immediate and indirect instances of a class - - | -
- Return: - | -- fully qualified list of instances - | -
- Arguments: - | -- objName: name of a new class or object - | -
- - | -- ?args?: arguments passed to the constructor - | -
- Description: - | -
-
- Create user-defined classes or objects. If the class is a meta-class,
- a class is created, otherwise an object.
- The object creation protocol implemened by create works as follows:
-
In the default XOTcl definition, the create method - is called implicitly by the unknown method of the metaclass - Class, when a class (meta-class) is called with an unknown - method. E.g. the following two commands are equivalent - - - Car herby -color red - Car create herby -color red- - When a users may want to call the constructor init - 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.: - - Class Car -init -superclass Vehicle- - See also: recreate - - |
-
- Return: - | -- fully qualified name of the created instance (result of alloc) - | -
- Arguments: - | -- args: info options - | -
- Description: - | -
-
- Introspection of classes. All options available for objects
- (see info object) is also available
- for classes.
- The following options can be specified:
-
|
-
- Return: - | -- Value of introspected option as a string. - | -
- Arguments: - | -- obj: obj/class name - | -
- - | -- ?args?: arguments passed to the destructor - | -
- Description: - | -
-
- Standard destructor. Destroys XOTcl object physically from the memory.
- Can be overloaded for customized destruction process.
- - In XOTcl objects are not directly destroyed, when a destroy is - encountered in a method. Beforehand, the interpreter looks up whether - the object is still referenced on the method callstack or not. If not, - the object is directly destroyed. Otherwise every occurrence of the - object on the callstack is marked as destroyed. During popping of the - 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 - they are physically destroyed. - - |
-
- Return: - | -- empty string - | -
- Arguments: - | -- ?args?: instfilter specification - | -
- Description: - | -- - If $args 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 $args it has more argument, the first one specifies the - action. Possible values are assign, get, - add or delete, it modifies the current - settings as indicated. For more details, check the - tutorial. - - | -
- Return: - | -- if $args return empty current instfilters, otherwise empty - | -
- Arguments: - | -- filterName: filter name of a registered filter - | -
- - | -- guard: set of conditions to execute the filter - | -
- 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. - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- methodName: name of forwarder method - | -
- - | -- ?options?: -objscope, -methodprefix string, -default names, -earlybinding, -verbose - | -
- - | -- ?callee?: named of the called command or object - | -
- - | -- ?args?: arguments - | -
- 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:
-
|
-
- Return: - | -- empty - | -
- Arguments: - | -- 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. - All assertions are a list of ordinary Tcl conditions. - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- ?args?: instmixin specification - | -
- Description: - | -- - If $args is one argument, it specifies a list of instmixins to - be set. Every instmixin must be a defined class. - If $args has more argument, the first one specifies the - action. Possible values are assign, get, - add or delete, it modifies the current - settings as indicated. For more details, check the - tutorial. - - | -
- Return: - | -- if $args empty return current instmixins, otherwise empty - | -
- Arguments: - | -- name: variable to be provided with getter/setter method - | -
- Description: - | -
-
- Add a getter/setter command for an instance variable with the
- specified name. This method is used for example by the
- parameter method.
- Example: - - Class C - C instparametercmd x - C c1 -x 100 - puts [c1 x]- - |
-
- Return: - | -- empty string - | -
- Arguments: - | -- name: instance method name - | -
- - | -- ?non-pos-args?: optional non-positional arguments - | -
- - | -- args: instance method arguments - | -
- - | -- body: instance method body - | -
- - | -- ?preAssertion?: optional assertions that must hold before the proc executes - | -
- - | -- ?postAssertion?: optional assertions that must hold after the proc executes - | -
- Description: - | -
-
- Specify an instance method in the same style as Tcl specifies procs.
- - 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 - of ordinary Tcl conditions. - - When instproc is called with an empty argument list and an empty - body, the specified instproc is deleted. - - |
-
- Return: - | -- empty string - | -
- Arguments: - | -- ?-childof obj? ?args?: args passed to create - | -
- Description: - | -
-
- Convenience method to create an autonamed object. E.g.:
- - HTTP new- creates ::xotcl::__#0, a subsequent call creates ::xotcl::__#1, ... - If -childof obj is specified, the new object is - created as a child of the specified object. - - |
-
- Return: - | -- fully qualified name of the created instance - | -
- Arguments: - | -- parameterList: list of parameter definitions - | -
- Description: - | -
-
- 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
- {p1 p2 ... pn}.
- 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.
- - Example: - - Class Car -parameter {{doors 4} color} - Car herby -doors 2 -color green- - |
-
- Return: - | -- empty string - | -
- Arguments: - | -- 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.,
- - Class Car -parameter { - {doors 4} - }- - is a short form for - - Class Car -parameter { - {doors -default 4} - }- - For specialized parameter classes other methods can be called, e.g. - {doors -default 3 -updateWidget car}- - |
-
- Return: - | -- empty string - | -
- Arguments: - | -- obj: obj to be recreated - | -
- - | -- ?args?: arbitrary arguments - | -
- Description: - | -
-
- Hook called upon recreation of an object in cases where the user wants to distinguish
- between creation and recreation of objects. A recreation occurs, when an Object is created
- with a name that exists already.
- A typical use-case is the redefinition
- of classes in and IDE, where the relations between classes/classes and object/classes
- should be preserved (this is different to a destroy of the object).
-
- The method recreate does not need to call alloc - but calls instead cleanup - to reset to the object (or class) to its initial state (e.g. remove variables, child objects, - for classes remove instaces, etc.). Then it performs the standard initialization - for the object or class. - - If recreate is overloaded and the default recreate method is called via next, - the pre-part - (before next) contains its old state of the object, - while during the part after next the - object is cleaned up. - To ease recreation of classes, see ::xotcl::configure softrecreate. - - See also: create - - |
-
- Return: - | -- fully qualified name of instance - | -
- Arguments: - | -- classList: ?list of classes? - | -
- Description: - | -- - Specify super-classes for a class. "superclass" changes the list - of superclasses dynamically to classList. - The method returns the current value of superclass, - when it is called without arguments. - - | -
- Return: - | -- if classList is not specified return superclass(es), otherwise empty - | -
- Arguments: - | -- ?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
- arguments stepping one step to the right; in the general case:
- - ClassName create ClassName ?args?- - Unknown can be overloaded in user-defined subclasses of class. - - |
-
- Return: - | -- Standard unknown mechanism returns result of create - | -
- Arguments: - | -- name: name of class to be created - | -
- Description: - | -
-
- This method is called, whenever XOTcl references a class,
- which is not defined yet. In the following example:
- Class C -superclass D
- D is not defined. Therefore Class __unknown D
- is called. This callback can be used to perform auto-loading
- of classes. After this call, XOTcl tries again to
- resolve D. If it succeeds, XOTcl will continue; otherwise,
- an error is generated.
- - This method is called on mixin/instmixin definition calls, - istype, ismixin, class, superclass and parameterclass - - |
-
- Return: - | -- empty string - | -
- - - -
- Description: - | -- - This class holds the pre-defined methods available for all XOTcl - objects. All these methods are also available on classes. - - | -
- Arguments: - | -- methtype: instproc or proc - | -
- - | -- methodName: name of abstract method - | -
- - | -- arglist: arguments - | -
- 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. - - | -
- Return: - | -- error - | -
- Arguments: - | -- varName: name of variable - | -
- - | -- args: arguments to append - | -
- Description: - | -- - 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). - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- opt: array option - | -
- - | -- array: array name - | -
- - | -- ?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 - (see documentation of Tcl command with the same name for details). - - | -
- Return: - | -- diverse results - | -
- Arguments: - | -
- ?<-instance>|<-reset>?: Optional modifiers: - '-instance' makes the autoname start with a small letter. - '-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.:
- $obj autoname a- produces a0, a1, a2, ... - Autonames may have format strings - as in the Tcl 'format' command. - E.g.: - $obj autoname a%06d- produces a000000, a000001, a000002, ... - - |
-
- Return: - | -- newly constructed autoname value - | -
- Arguments: - | -- options: none, one or more of: (?all? ?pre? ?post? ?invar? ?instinvar?) - | -
- 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
- off. Examples:
- - o check {};- info check introspects check options. - - |
-
- Return: - | -- empty string - | -
- Arguments: - | -- newClass: ?new class? - | -
- Description: - | -- - Changes the class of an object dynamically to newClass. - The method returns the current value of class, - when it is called without arguments. - - | -
- Return: - | -- if newClass is not specified return class, otherwise empty - | -
- Arguments: - | -- ?args?: Arbitrary arguments passed to cleanup - | -
- Description: - | -- - Resets an object or class into an initial state, as after construction. - Called during recreation process by the method recreate. - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- ?args?: '-' method calls - | -
- Description: - | -
-
- Calls the '-' (dash) methods. This method evaluates its argument list
- and calls everything starting with '-' (followed by an alpha character)
- as a method. Every list element until the next '-' is interpreted as an
- argument of the called method. XOTcl supports argument lists with a variable
- number of arguments. If an argument 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") to avoid
- the interpretation of "a-" as a method.
- The method configure is called automatically by - the default create and recreate methods after - the default values are set. -- In the following example, the variable set is called via - configure before init: - Object o -set x 4- The method configure can be called with the - dash-notation at arbitrary times: - o configure -set x 4- - |
-
- Return: - | -- number of the skipped first arguments - | -
- Arguments: - | -- ?-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. - 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 - | -
- - | -- 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
- creating new objects in the specified scope can be turned off.
- The following command creates a three rectangles, containing some
- points.
-- Class Point -parameter {{x 100} {y 300}} - Class Rectangle -parameter {color} - - Rectangle r0 -color pink -contains { - Rectangle r1 -color red -contains { - Point x1 -x 1 -y 2 - Point x2 -x 1 -y 2 - } - Rectangle r2 -color green -contains { - Point x1 - Point x2 - } - } -- The resulting object structure looks like in the folloing - example (simplified). - - ::r0 - ::r0::r1 - ::r0::r1::x1 - ::r0::r1::x2 - ::r0::r2 - ::r0::r2::x1 - ::r0::r2::x2 -- - |
-
- Return: - | -- number of the skipped first arguments - | -
- Arguments: - | -- newName: destination of copy operation - | -
- Description: - | -- - Perform a deep copy of the object/class (with all information, like - class, parameter, filter, ...) - to "newName". - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- ?args?: Arbitrary arguments passed to the destructor - | -
- Description: - | -
-
- Standard destructor.
- Can be overloaded for customized destruction process. Actual destruction
- is done by instdestroy. "destroy" in principal does:
- - Object instproc destroy args { - [my info class] instdestroy [self] - }- - |
-
- Return: - | -- empty string - | -
- Arguments: - | -- args: cmds to eval - | -
- Description: - | -- - Eval args in the scope of the object. That is local variables - are directly accessible as Tcl vars. - - | -
- Return: - | -- result of cmds evaled - | -
- Arguments: - | -- al: Argument List Name - | -
- - | -- name: Name of the configure argument to be extracted (should start with '-') - | -
- - | -- ?cutTheArg?: if cutTheArg not 0, it cut from upvar argsList, default is 0 - | -
- Description: - | -- - Check an argument list separated with '-' args, as for instance - configure - arguments, and extract the argument's values. Optionally, cut the - whole argument. - - | -
- Return: - | -- value list of the argument - | -
- Arguments: - | -- var: variable name - | -
- Description: - | -- - Check for existence of the named instance variable on the object. - - | -
- Return: - | -- 1 if variable exists, 0 if not - | -
- Arguments: - | -- ?args?: filter specification - | -
- Description: - | -- - If $args 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 $args it has more argument, the first one specifies the - action. Possible values are assign, get, - add or delete, it modifies the current - settings as indicated. For more details, check the - tutorial. - - | -
- Return: - | -- if $args return empty current filters, otherwise empty - | -
- Arguments: - | -- filterName: filter name of a registered filter - | -
- - | -- guard: set of conditions to execute the filter - | -
- 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. - - | -
- Return: - | -- an empty string - | -
- Arguments: - | -- methodName: filter method name - | -
- Description: - | -- - 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'. - - | -
- Return: - | -- full qualified name, if filter is found, otherwise an empty string - | -
- Arguments: - | -- methodName: name of forwarder method - | -
- - | -- ?options?: -objscope, -methodprefix string, -default names, -earlybinding, -verbose - | -
- - | -- ?callee?: named of the called command or object - | -
- - | -- ?args?: arguments - | -
- 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:
-
|
-
- Return: - | -- empty - | -
- Arguments: - | -- ?className?: name of a class to be tested - | -
- Description: - | -- - 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 - istype and ismixin. - - | -
- Return: - | -- 1 or 0 - | -
- Arguments: - | -- args: argument list - | -
- Description: - | -- - The method init is called automatically by the default - create method on initialized - objects (the default variables are set, the configure - methods are already performed). This method is solely a user hook for - applications to perform class specific initialzation after object creation. - - | -
- Arguments: - | -- varName: variable name - | -
- - | -- ?increment?: value to increment - | -
- Description: - | -- - Increments the value stored in the variable whose name is varName. - The new value is stored as a decimal string in variable varName and also - returned as result. Wrapper to the same named Tcl command - (see documentation of Tcl command with the same name for details). - - | -
- Return: - | -- new value of varName - | -
- Arguments: - | -- args: info options - | -
- Description: - | -
-
- Introspection of objects. The following options can be specified:
- |
-
- Return: - | -- Value of introspected option as a string. - | -
- Arguments: - | -- v1: name of instance variable - | -
- - | -- ?v2...vn?: optional other names for instance variables - | -
- Description: - | -
-
- Binds an variable of the object to the current method's scope.
- Example:
- - kitchen proc enter {name} { - my instvar persons - set persons($name) [clock seconds] - }- Now persons can be accessed as a local variable of the method. - - A special syntax is: {varName aliasName} . - This gives the variable with the name - varName the alias aliasName. - 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 - | -
- Arguments: - | -- invariantList: Body of invariants for the object - | -
- Description: - | -- - Specify invariants for the objects. All assertions are a list - of ordinary Tcl conditions. - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- ?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. - - | -
- Return: - | -- 1 or 0 - | -
- Arguments: - | -- ?metaClassName?: name of a metaclass to be tested - | -
- Description: - | -- - Test whether the argument (or the Object, if no argument is specified) - is an existing metaclass or not. - - | -
- Return: - | -- 1 or 0 - | -
- Arguments: - | -- ?className?: name of a class to be tested - | -
- Description: - | -- - Test whether the argument is a mixin or instmixin of the object. - - | -
- Return: - | -- 1 or 0 - | -
- Arguments: - | -- objName: string that should be tested, whether it is a name of an object or not - | -
- Description: - | -- - Test whether the argument is an existing object or not. Every XOTcl object - has the capability to check the object system. - - | -
- Return: - | -- 1 or 0 - | -
- Arguments: - | -- className: type name - | -
- 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. - - | -
- Return: - | -- 1 or 0 - | -
- Arguments: - | -- varName: name of variable - | -
- - | -- args: elements to append - | -
- 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 - values - (see documentation of Tcl command with the same name for details). - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- ?args?: mixin specification - | -
- Description: - | -- - If $args is one argument, it specifies a list of mixins to - be set. Every mixin must be a defined class. - If $args has more argument, the first one specifies the - action. Possible values are assign, get, - add or delete, it modifies the current - settings as indicated. For more details, check the - tutorial. - - | -
- Return: - | -- if $args empty return current mixins, otherwise empty - | -
- Arguments: - | -- newName: destination of move operation - | -
- Description: - | -- - 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 - subsequent destroy operation. - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- 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.
- Example:
- - Object o - o parametercmd x - o x 100 - puts [o x]- - |
-
- Return: - | -- empty string - | -
- Description: - | -
-
- flag that constructor (method init) should
- not be called.
- Example:
- - Class C - C instproc init {} {puts hu} - C c1 -noinit- The object c1 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. - - |
-
- Return: - | -- empty string - | -
- Arguments: - | -- name: method name - | -
- - | -- ?non-pos-args?: optional non-positional arguments - | -
- - | -- args: method arguments - | -
- - | -- body: method body - | -
- - | -- ?preAssertion?: optional assertions that must hold before the proc executes - | -
- - | -- ?postAssertion?: optional assertions that must hold after the proc executes - | -
- Description: - | -
-
- Specify a method in the same style as Tcl specifies procs.
- - 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 - of ordinary Tcl conditions. - - When instproc is called with an empty argument list and an empty - body, the specified instproc is deleted. - - - |
-
- Return: - | -- empty string - | -
- Arguments: - | -- procName: simple proc name - | -
- Description: - | -
-
- 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'.
- 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.,
- o procsearch set- returns ::xotcl::Object instcmd set. - - |
-
- Return: - | -- fully qualified name of the searched method or empty string if not found - | -
- Description: - | -- - The method requireNamespace 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, - info hasNamespace can be used. - - 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. - requireNamespace is often needed when e.g. using Tk widgets - when variables are to be referenced via the namespace - (with ... -variable [self]::varName ...). - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- varName: name of the instance variable - | -
- - | -- ?value?: optional new value - | -
- Description: - | -- - Set an instance variable in the same style as Tcl sets a variable. - - With one argument, we retrieve the current value, - with two arguments, we set the instance variable to the new value. - - | -
- Return: - | -- Value of the instance variable - | -
- Arguments: - | -- options: ?-nobackslashes? ?-nocommands? ?-novariables? - | -
- - | -- string: string to be substituted - | -
- Description: - | -- - Perform backslash, command, and variable substitutions - in the scope of the given object - (see documentation of Tcl command with the same name for details). - - | -
- Return: - | -- substituted string - | -
- Arguments: - | -- varName: name of variable - | -
- Description: - | -- - Trace an object variable - (see documentation of Tcl command with the same name for details). - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- ?-nocomplain?: possible error messages are suppressed - | -
- - | -- v1: Variable to unset - | -
- - | -- ?v2...vn?: Optional more vars to unset - | -
- Description: - | -- - The unset operation deletes one or optionally a set of variables from an object. - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- ?level?: Level - | -
- - | -- command ?args?: command and arguments to be called - | -
- Description: - | -
-
- When this method is used without the optional level, it is a short form
- of the Tcl command
- uplevel [self callinglevel] command ?args?- When it is called with the level, it is compatible with the original Tcl command. - - |
-
- Return: - | -- result of the command - | -
- Arguments: - | -- ?level?: Level - | -
- - | -- otherVar localVar: referenced variable and variable in the local scope - | -
- - | -- ?otherVar localVar?: optional pairs of referenced and local variable names - | -
- Description: - | -
-
- When this method is used without the optional level, it is a short form
- of the Tcl command
- upvar [self callinglevel] otherVar localVar ?...?. - When it is called with the level, it is compatible with the original Tcl command. - - |
-
- Return: - | -- result of the command - | -
- Arguments: - | -- varName: name of variable - | -
- Description: - | -- - Enter event loop until the specified variable is set - (see documentation of Tcl command with the same name for details). - - | -
- Return: - | -- empty string - | -
- Arguments: - | -- : - | -
- Description: - | -
-
- This method is used to specify that the object
- should be deleted automatically, when the current
- Tcl-proc/object-proc/instproc is left. Example:
- set x [Object new -volatile]- - |
-
- Return: - | -- empty string - | -
- Description: - | -- Retrieve the current exit handler procedure body as a string. - | -
- Return: - | -- exit handler proc body - | -
- Arguments: - | -- body: procedure body - | -
- Description: - | -- - 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 - user-defined exit-handler. - - | -
- Return: - | -- exit handler proc body - | -
-
- - Back to index page. - --
- - - Index: doc/langRef-xotcl.pdf =================================================================== diff -u -N -r46f02e4868e118466d888b35d6b281b3f2ba31ac -r2111020b49da8ce57758e51accf0b6073037f0d2 Binary files differ Index: doc/langRef.xotcl =================================================================== diff -u -N -r46f02e4868e118466d888b35d6b281b3f2ba31ac -r2111020b49da8ce57758e51accf0b6073037f0d2 --- doc/langRef.xotcl (.../langRef.xotcl) (revision 46f02e4868e118466d888b35d6b281b3f2ba31ac) +++ doc/langRef.xotcl (.../langRef.xotcl) (revision 2111020b49da8ce57758e51accf0b6073037f0d2) @@ -1,5 +1,5 @@ # $Id: langRef.xotcl,v 1.14 2006/10/04 20:40:23 neumann Exp $ -package provide XOTcl-langRef 1.5.2 +package provide XOTcl-langRef 1.6.0 package require XOTcl @ @File { @@ -113,18 +113,39 @@ with class definitions (e.g. when used in OpenACS with file watching and reloading). With <@tt>softrecreate@tt> set, it is not necessary to recreate dependent subclasses etc. -Example: e.g. there is a class hierarchy A <- B <- C Without <@tt>softrecreate@tt> set, a reload of B means first a destroy of B, leading to A <- C, and instances of B are re-classed to ::xotcl::Object. When <@tt>softrecreate@tt> is set, the structure remains unchanged.
+ This command has the only purpose to delete all objects and classes + 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 + of objects and classes happens in a safe environment, where the + XOTcl destructors (destroy methods) are still able to + run. Without ::xotcl::finalize the deletion happens in + Tcl_FinalizeThread(), after thread cleanup (where e.g. the + thread local storage is freed). This can lead to memory leaks in + AOLserver, which allocates e.g. some structures on demand, but + since this happens after cleanup, it will leak. A simple ns_log + in a destructor might lead to this problem. The solution is to + call ::xotcl::finalize in the "delete trace" in AOLserver (as it + happens in OpenACS). +
+ Note, that ::xotcl::finalize is not intended for application programs. +
See also create. + } return "number of the skipped first arguments" } @@ -515,10 +543,8 @@ <@li><@TT>objName info body method@TT>: 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 - not specified, otherwise it returns 1 if className matches the - object's class and 0 if not. + <@li><@TT>objName info class@TT>: + Returns the name of the class of the current object. <@li><@TT>objName info children ?pattern?@TT>: Returns the list of aggregated objects with fully qualified names if @@ -543,10 +569,14 @@ <@li><@TT>objName info filterguard name@TT>: Returns the guards for filter identified by name. - <@li><@TT>objName info forward ?-definition? name@TT>: Checks, - whether <@TT>name<@/TT> is a forwarder (accepts wild chard characters). - When <@TT>-definition@/TT> is specified, it returns the definition - of the forwarder. + <@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 + only the matching forwarders are returned. When the <@TT>definition@TT> + option is used together with a name of a forwarder, the definition + 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 @@ -567,16 +597,26 @@ <@TT>-nocmds@TT> only returns procs. Modifier <@TT>-nomixins@TT> excludes search on mixins. - <@li><@TT>objName info mixin@TT>: Returns the list of mixins - of the object. With <@TT>-order@TT> modifier the order of mixins - (whole hierarchy) is printed. + <@li><@TT>objName info mixin ?-order? ?-guard? ?pattern?@TT>: + Returns the list of mixins of the object. With <@TT>-order@TT> + modifier the order of mixins (whole hierarchy) is printed. If + <@TT>-guard@TT> is specified, the mixin guards are returned. + If <@TT>pattern@TT> is specified and it contains wildcards, + all matching mixins are returned. If <@TT>pattern@TT> does not + contain wildcards, either the fully qualified name is returned, + or empty, if no match exists. <@li><@TT>objName info mixinguard name@TT>: Returns the guards for the mixin identified by name. <@li><@TT>objName info nonposargs methodName@TT>: Returns non-positional arg list of methodName + <@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), in fully qualified form. @@ -591,9 +631,11 @@ 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 ?pattern?@TT>: Returns all + <@li><@TT>objName info precedence ?-intrinsic? ?pattern?@TT>: Returns all classes in the precedence order from which the specified - object inherits methods. The returned list of classes contains + 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 are removed). If the pattern is specified, only matching classes @@ -942,13 +984,16 @@ ?args? "arguments passed during creation" } { description { - Allocate (create) an uninitialized object or class. Typically, alloc - is called automatically by <@tt>create<@/tt> - to allocate an uninitialized object or class. - In contrast to alloc, <@tt>create<@/tt> also - initializes and configures the object. - The method alloc can be used by a programmer who may want to - create uninitialized objects/classes. + + Allocate an uninitialized XOTcl object or class. Alloc is used by + the method <@tt>create<@/tt> to + allocate the object. Note that <@tt>create<@/tt> also calls as + well configure and init to initialized the + object. Only in seldom cases the programmer may want to suppress + the <@tt>create<@/tt> mechanism and just allocate uninitiaized + objects via <@tt>alloc<@/tt>. + } return "fully qualified name of created instance" } @@ -981,10 +1026,34 @@ with all arguments up to the first '-' argument (as returned by configure). -
In the default XOTcl definition, the <@tt>create@tt> method - is called implicitly by the <@tt>unknown@tt> method of the metaclass - Class, when a class (meta-class) is called with an unknown + The method <@tt>create<@/tt> is responsible for allocating and + initializing objects. The method can be overloaded e.g. in a + metaclass if other initialization behavior is wanted. +
+ The standard behavior of <@tt>create<@/tt> is as follows: +
+ superclasses (an set if found). + The <@tt>create@tt> method is often called implicitly through the method. E.g. the following two commands are equivalent <@pre class='code'> @@ -1028,9 +1097,14 @@ of the class hierarchy. If pattern is specified, only matching values are returned. - <@li><@TT>ClassName info instances ?pattern?@TT>: - Returns a list of the instances of the class. - If pattern is specified, only matching values are returned. + <@li><@TT>ClassName info instances ?-closure? ?pattern?@TT>: + Returns a list of the instances of the class. If + <@TT>-closure@TT> is specified, the resultet contains as well + the instances of subclasses. If <@TT>pattern@TT> is specified + and it contains wildcards, all matching instances are + returned. If <@TT>pattern@TT> does not contain wildcards, + either the fully qualified name is returned, or empty, if no + match exists. <@li><@TT>ClassName info instargs method@TT>: Returns the arguments of the specified instproc (instance method). @@ -1055,23 +1129,47 @@ <@li><@TT>ClassName info instfilterguard name@TT>: Returns the guards for instfilter identified by name. - <@li><@TT>ClassName info instforward ?-definition? name@TT>: Checks, - whether <@TT>name<@/TT> is a forwarder (accepts wild chard characters). - When <@TT>-definition@/TT> is specified, it returns the definition - of the forwarder. + <@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 + only the matching instforwarders are returned. When the <@TT>definition@TT> + option is used together with a name of a isntforwarder, the definition + 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>: Returns class invariants. - <@li><@TT>ClassName info instmixin@TT>: - Returns the list of instmixins of this class. + <@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 + returned. If <@TT>pattern@TT> does not contain wildcards, + either the fully qualified name is returned, or empty, if no + match exists. + <@li><@TT>ClassName info instmixinof ?-closure? ?pattern?@TT>: + Returns the list of classes, into which this class was mixed in + via instmixin. This is the inverse function of <@TT>ClassName + info instmixin@TT>. If <@TT>-closure@TT> is specified, also + the classes are returned, for which the class is indirectly + mixed in via instmixin. If <@TT>pattern@TT> is specified and + it contains wildcards, all matching mixin classes are + returned. If <@TT>pattern@TT> does not contain wildcards, + either the fully qualified name is returned, or empty, if no + match exists. + <@li><@TT>ClassName info isntmixinguard name@TT>: Returns the guards for the instmixin identified by name. <@li><@TT>ClassName info instnonposargs methodName@TT>: returns list of non-positional args of methodName + <@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>: Returns post assertions of methodName. @@ -1082,22 +1180,37 @@ 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 + list of classes, into which this class was mixed in via per + object mixin. This is the inverse function of <@TT>Object info + mixin@TT>. If <@TT>-closure@TT> is specified, also the + classes are returned, for which the class is indirectly mixed in + as a per-object mixin. If <@TT>pattern@TT> is specified and + it contains wildcards, all matching mixin classes are + returned. If <@TT>pattern@TT> does not contain wildcards, + either the fully qualified name is returned, or empty, if no + match exists. + <@li><@TT>ClassName info parameter@TT>: Returns parameter list. - <@li><@TT>ClassName info subclass ?subclassname?@TT>: - Returns a list of all subclasses of the class, if subclassname - was not specified, otherwise it returns 1 if subclassname is a - subclass and 0 if not. + <@li><@TT>ClassName info subclass ?-closure? ?pattern?@TT>: + Returns a list of all subclasses of the class. If + <@TT>-closure@TT> is specified, the result contains as well + the subclasses of the subclasses. If <@TT>pattern@TT> is + specified and it contains wildcards, all matching subclasses are + returned. If <@TT>pattern@TT> does not contain wildcards, + either the fully qualified name is returned, or empty, if no + match exists. - <@li><@TT> ClassName info superclass ?superclassname?@TT>: - Returns a list of all super-classes of the class, - if superclassname was not specified, otherwise it returns - 1 if superclassname is a superclass and 0 if not. - - <@li><@TT>ClassName info slots@TT>: - Returns the slot objects defined for this class. - + <@li><@TT> ClassName info superclass ?-closure? ?superclassname?@TT>: + Returns a list of all super-classes of the class. If + <@TT>-closure@TT> is specified, the result contains as well + the superclasses of the superclasses. If <@TT>pattern@TT> is + specified and it contains wildcards, all matching superclasses are + returned. If <@TT>pattern@TT> does not contain wildcards, + either the fully qualified name is returned, or empty, if no + match exists. <@/ul> } return "Value of introspected option as a string." Index: doc/link-checker-xotcl.html =================================================================== diff -u -N --- doc/link-checker-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/link-checker-xotcl.html (revision 0) @@ -1,68 +0,0 @@ - - - -
--
- Description: - | -
-
- A simple link checking program that checks in parallel
- pages of a site.
- - Options: -
|
-
-
- - Back to index page. - --
- - - Index: doc/make-xotcl.html =================================================================== diff -u -N --- doc/make-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/make-xotcl.html (revision 0) @@ -1,42 +0,0 @@ - - - - --
-
- - Back to index page. - --
- - - Index: doc/makeDoc-xotcl.html =================================================================== diff -u -N --- doc/makeDoc-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/makeDoc-xotcl.html (revision 0) @@ -1,54 +0,0 @@ - - - - --
- Description: - | -
-
- Documentation tool for the XOTcl distribution. - Usage: 'makeDoc docdir filename ?filename ...?' - Called by Makefile. - - |
-
-
- - Back to index page. - --
- - - Index: doc/metadataAnalyzer-xotcl.html =================================================================== diff -u -N --- doc/metadataAnalyzer-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/metadataAnalyzer-xotcl.html (revision 0) @@ -1,600 +0,0 @@ - - - - --
- Description: - | -
-
- XOTcl file analyzer for @ metadata. E.g.\ used for
- doumentation with xoDoc (but in the static variant
- StaticMetadataAnalyzer which uses the dynamic
- variant in this file).
- - Sample sample usage: - - package require xotcl::metadataAnalyzer - - # instantiate metadata analyzer object - MetadataAnalyzer @::m - # make this object be known to @ and turn @ metadata processing on - @ analyzerObj @::m - @ onOff 1 - - # read in some metadata tags (in sample file) & execute the file - source lib/testx.xotcl - - # turn @ metadata processing off again - @ onOff 0 - - # print out all collected metadata - puts [@::m print] -- - |
-
- - - -
- Description: - | -- Recreate @ with metadata analyis funtionality. - | -
- - - -
- Description: - | -- Class that overload the unknown mechanism of @ to provide metadata analysis. - | -
- - - -
- Description: - | -- - Token for Class metadata. Contains additional parameters: - "instprocList" = list of all instproc token. - - | -
- - - -
- Description: - | -- - Token for @Constraint Metadata. - - | -
- - - -
- Description: - | -- - Token for @File Metadata. - - | -
- - - -
- Description: - | -- - Token for Instproc metadata. - - | -
- - - -
- Description: - | -- - Token for Meta-Class metadata. - - | -
- - - -
- Description: - | -- Handler class for building a metadata runtime structure - | -
- Description: - | -- Print all collected token information to stdout. - This method is also an exmaple how the tokens can be used. - | -
- - - -
- Description: - | -
-
- Each collected metadata element is stored in a token object.
- MetadataToken is superclass of token object classes. Each metadata token
- has two interesting parameters:
- - "properties" contains list of all described metadata properties. E.g. can - be printed with - - foreach p [my set properties] { - if {[my exists $p]} { - append c " $p=[my set $p]\n" - } - } -- "name" contains the method, object, ... name of the metadata element. - - All metadata token are aggregated by @. Therefore, - - foreach mdt [@ info children] { - if {[$mdt istype MetadataToken]} {$mdt print} - } -- prints all token. - - - |
-
- Description: - | -- Print metadata properties to stdout. - | -
- Description: - | -- - Abstract method for printing a token to stdout. - - | -
- Arguments: - | -- l: token list - | -
- Description: - | -- Sort a token list with names. Since names are autonames, - this means order of appearance in the program. - | -
- - - -
- Description: - | -- - Token for Method metadata. Contains additional parameters: - "arguments" of the method, "returnValue" of the method, - "obj" name, "abstract" = 0 or 1 (whether its an abstract method or not). - - | -
- - - -
- Description: - | -- - Token for Object metadata. Contains additional parameters: - "procList" = list of all proc token and "cl"= class name. - - | -
- - - -
- Description: - | -- - Token for Package metadata. Contains additional parameters: - "version" of the package and "type"= either "require" or "provide". - - - | -
- - - -
- Description: - | -- - Token for Proc metadata - - | -
-
- - Back to index page. - --
- - - Index: doc/mixinStrategy-xotcl.html =================================================================== diff -u -N --- doc/mixinStrategy-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/mixinStrategy-xotcl.html (revision 0) @@ -1,246 +0,0 @@ - - - - --
- Description: - | -
-
- These methods provide support for managing "strategies", i.e.
- mixin-classes, where only one kind of a family of conformant
- mixins should be registered.
- - Naming convertions for strategies: - All strategies must follow the naming convention 'kind=implementation'. - Examples are the persistency strategy 'eager' specfied as - 'persistent=eager' or the persistency strategy 'lazy' (specified as - 'persistent=lazy') - - |
-
- - - -
- Arguments: - | -- strategy: Strategy to be added - | -
- Description: - | -- - This method adds or replaces a new strategy from the mixin - list. Strategies are named following the convention mentioned - above. - - | -
- Return: - | -- old strategy - | -
- Arguments: - | -- kind: strategy kind - | -
- Description: - | -- - This method searches the mixin list for a mixin of this - kind (starting with $kind=) - - | -
- Return: - | -- returns the maching strategy - | -
- Arguments: - | -- construct: (inst) 'filter' or 'mixin' - | -
- - | -- args: to be added - | -
- Description: - | -- add the specified (inst) 'filters' or 'mixins' - | -
- Return: - | -- empty - | -
- Arguments: - | -- construct: (inst) 'filter' or 'mixin' - | -
- - | -- args: to be removed - | -
- Description: - | -- remove the specified (inst) 'filters' or 'mixins' - | -
- Return: - | -- empty - | -
-
- - Back to index page. - --
- - - Index: doc/observer-xotcl.html =================================================================== diff -u -N --- doc/observer-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/observer-xotcl.html (revision 0) @@ -1,54 +0,0 @@ - - - - --
- Description: - | -- - Simple observer pattern meta-class taken from the paper - 'Filters as a Language Support for Design Patterns in - Object-Oriented Scripting Languages'. - - | -
-
- - Back to index page. - --
- - - Index: doc/package-xotcl.html =================================================================== diff -u -N --- doc/package-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/package-xotcl.html (revision 0) @@ -1,149 +0,0 @@ - - - - --
- Description: - | -- - Represent Tcl package loading command by an XOTcl - object. Enables tracking, tracing, and verbose output - of package loading - - | -
- - - -
- Description: - | -- - Supports all Tcl package options plus present and verbose. - - | -
- Arguments: - | -- args: packageName or -exact packageName - | -
- Description: - | -- - Check whether a package is present or not. Similar to Tcl's - package present, but works with Tcl < 8.3 - - | -
- Arguments: - | -- v: 1 or 0 - | -
- Description: - | -- - Toggle verbose output on/off. If on, package prints the locations - from where packages are loaded to the screen. Default is off. - - | -
-
- - Back to index page. - --
- - - Index: doc/parameter-xotcl.html =================================================================== diff -u -N --- doc/parameter-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/parameter-xotcl.html (revision 0) @@ -1,42 +0,0 @@ - - - - --
-
- - Back to index page. - --
- - - Index: doc/persistenceExample-xotcl.html =================================================================== diff -u -N --- doc/persistenceExample-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/persistenceExample-xotcl.html (revision 0) @@ -1,42 +0,0 @@ - - - - --
-
- - Back to index page. - --
- - - Index: doc/pinger-xotcl.html =================================================================== diff -u -N --- doc/pinger-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/pinger-xotcl.html (revision 0) @@ -1,55 +0,0 @@ - - - - --
- Description: - | -- - Pinger example for the observer pattern taken from the paper - 'Filters as a Language Support for Design Patterns in - Object-Oriented Scripting Languages'. - It demonstrates how to observe a network connection. - - | -
-
- - Back to index page. - --
- - - Index: doc/secure-webclient-xotcl.html =================================================================== diff -u -N --- doc/secure-webclient-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/secure-webclient-xotcl.html (revision 0) @@ -1,53 +0,0 @@ - - - - --
- Description: - | -- - A sample secure web client that queries an secure web-server. - It needs to be adopted with different https URLs for testing... - - | -
-
- - Back to index page. - --
- - - Index: doc/secure-webserver-xotcl.html =================================================================== diff -u -N --- doc/secure-webserver-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/secure-webserver-xotcl.html (revision 0) @@ -1,57 +0,0 @@ - - - - --
- Description: - | -
-
- This small secure web server that provides its documents
- via SSL (https, port 8443) and plain http (port 8086).
- - This file requires TLS. If you experice problems with - versions obtained from the Web, contact gustaf.neumann@wu-wien.ac.at - for a patch. - - |
-
-
- - Back to index page. - --
- - - Index: doc/simpleFilters-xotcl.html =================================================================== diff -u -N --- doc/simpleFilters-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/simpleFilters-xotcl.html (revision 0) @@ -1,55 +0,0 @@ - - - - --
- Description: - | -- - Some simple examples of (inst)filters taken from the paper - 'Filters as a Language Support for Design Patterns in - Object-Oriented Scripting Languages'. They demonstrate filters, - filter chains and filter inheritance. - - | -
-
- - Back to index page. - --
- - - Index: doc/soccerClub-xotcl.html =================================================================== diff -u -N --- doc/soccerClub-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/soccerClub-xotcl.html (revision 0) @@ -1,54 +0,0 @@ - - - - --
- Description: - | -- - This is a simple introductory example for the language XOTcl. - It demonstrates the basic language constructs on the example of - a soccer club. - - | -
-
- - Back to index page. - --
- - - Index: doc/speedtest-xotcl.html =================================================================== diff -u -N --- doc/speedtest-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/speedtest-xotcl.html (revision 0) @@ -1,53 +0,0 @@ - - - - --
- Description: - | -- - Regression and speed test for various ways to achieve a similar - behaviour. - - | -
-
- - Back to index page. - --
- - - Index: doc/staticMetadata-xotcl.html =================================================================== diff -u -N --- doc/staticMetadata-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/staticMetadata-xotcl.html (revision 0) @@ -1,120 +0,0 @@ - - - - --
- Description: - | -- - XOTcl file static analyzer for @ metadata. E.g. used for - doumentation with xoDoc. I.e. allows for reading in a - file and evaluating the metadata-related info only. - - | -
- - - -
- Description: - | -- - Metadata analyzer class that allows for reading in files - and evaluation of the metadata content in the file. - - | -
- Arguments: - | -- name: File name - | -
- Description: - | -- Analyze a file and build up a token structure for each metadata token in the file. - | -
-
- - Back to index page. - --
- - - Index: doc/test-xotcl.html =================================================================== diff -u -N --- doc/test-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/test-xotcl.html (revision 0) @@ -1,96 +0,0 @@ - - - - --
- Description: - | -- - Simple regression test support. - - | -
- - - -
- Description: - | -
-
- Class Test is used to configure test instances, which can
- be configured by the following parameters:
-
|
-
-
- - Back to index page. - --
- - - Index: doc/testo-xotcl.html =================================================================== diff -u -N --- doc/testo-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/testo-xotcl.html (revision 0) @@ -1,109 +0,0 @@ - - - - --
- Description: - | -- - This is a class which provides regression test objects - for the OTcl derived features of the XOTcl - Language. - This script is based upon the test.tcl script of the OTcl distribution - and adopted for XOTcl. - - | -
- - - -
- Description: - | -- - A meta-class for test objects. - - | -
- - - -
-
- - Back to index page. - --
- - - Index: doc/testx-xotcl.html =================================================================== diff -u -N --- doc/testx-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/testx-xotcl.html (revision 0) @@ -1,718 +0,0 @@ - - - - --
- Description: - | -- - This is a file which provides a regression test - for the features of the XOTcl - Language. - - | -
- - - -
- - - -
- Description: - | -- Regression test object testing the assertions. - | -
- - - -
- Description: - | -- - Regression test for conditional mixins - - | -
- - - -
- Description: - | -- Regression test for copy/move methods - | -
- - - -
- Description: - | -- Regression test object testing adding/removing of filters. - | -
- - - -
- Description: - | -- Regression test object testing class changes of filters. - | -
- - - -
- Description: - | -- Regression test object testing filter guards. - | -
- - - -
- Description{: - | -- Regression - | -
- Test: - | -- object - | -
- Testing: - | -- introspection - | -
- Of: - | -- filters. - | -
- }: - | -- - | -
- - - -
- Description: - | -- Regression test object testing a simple observer using filters. - - | -
- - - -
- Description: - | -- - Regression test object testing the parameter instance method, - the init dash '-' and constructor calling. - - | -
- - - -
- Description: - | -- Regression test object testing mixin guards. - | -
- - - -
- Description: - | -- - Regression test object testing per-object mixin inheritance. - - | -
- - - -
- Description: - | -- - Regression test object testing per-object mixins. - - | -
- - - -
- Description: - | -- Regression test object testing the class nesting feature. - | -
- - - -
- Description: - | -- Regression test object testing the object nesting feature. - | -
- - - -
- Description: - | -- Regression test object testing the next primitive. - | -
- - - -
- Description: - | -- - Regression test for object and class references in tcl_objs - - | -
- - - -
- Description: - | -- - Regression test for procsearch - - | -
- - - -
- Description: - | -- Regression test for object recreation/cleanup. - | -
- - - -
- Description: - | -- - Regression test object testing arbitrary features. - - | -
- - - -
- Description: - | -- - Regression test object testing the ability of the next primitive to pass - arguments without naming them. - - | -
- - - -
- Description: - | -- - Regression test for volatile objects - - | -
-
- - Back to index page. - --
- - - Index: doc/trace-xotcl.html =================================================================== diff -u -N --- doc/trace-xotcl.html (revision 4dd2595d98574faaac87f5dd33b542516fdff5df) +++ doc/trace-xotcl.html (revision 0) @@ -1,432 +0,0 @@ - - - - --
- Description: - | -- - Various tracing tools for the XOTcl language. - - | -
- - - -
- Arguments: - | -- args: arbitrary args - | -
- Description: - | -- - Filter to trace every method call on an object or class hierarchy. - Outputs a message befora and after each call of the traced object. - - | -
- Return: - | -- empty string - | -
- Description: - | -- Experimental lint filter - | -
- Description: - | -- Experimental statistics filter - | -
- Arguments: - | -- args: ist of variables - | -
- Description: - | -- Show the values of the specified variables (or of all variables) - of an object on stderr. - | -
- Arguments: - | -- msg: optional output - | -
- Description: - | -- Show a message msg with the form "[self] $cls->$method $msg" on stderr. - | -
- Description: - | -- Show classes and mixins of the object - | -
- Arguments: - | -- maxDepth: max stack depth, default=100 - | -
- Description: - | -- Show callstack up to the specified calldepth. - | -
- Description: - | -- Show the current call with the form "[self] $cls->$method $args" on stderr. - | -
- Arguments: - | -- ?handle?: Handle object name, optional - | -
- Description: - | -- start a timer - | -
- Arguments: - | -- ?handle?: Handle object name, optional - | -
- Description: - | -- end a timer and show result - | -
- - - -
- Description: - | -- - Write trace outputs and produce statistics. Variable traceStream - defines where to write trace output (default: stderr). - - | -
- Arguments: - | -- line: output line - | -
- Description: - | -- - Define how traceFilter writes to the output stream. Default: - write to trace stream. - - | -
- Arguments: - | -- name: file name - | -
- Description: - | -- - Redirect trace output to file. - - | -
- Arguments: - | -- name: file name - | -
- Description: - | -- - Close trace file and redirect output to stderr. - - | -
-
- - Back to index page. - --
- - - Index: doc/tutorial.html =================================================================== diff -u -N -r46f02e4868e118466d888b35d6b281b3f2ba31ac -r2111020b49da8ce57758e51accf0b6073037f0d2 --- doc/tutorial.html (.../tutorial.html) (revision 46f02e4868e118466d888b35d6b281b3f2ba31ac) +++ doc/tutorial.html (.../tutorial.html) (revision 2111020b49da8ce57758e51accf0b6073037f0d2) @@ -4,7 +4,7 @@