Version 2 of oo::define

Updated 2010-10-23 16:54:51 by dkf

Command used to change the definition of classes in TclOO.
http://www.tcl.tk/man/tcl8.6/TclCmd/define.htm

oo::define class definitionScript
oo::define class arg arg ?arg ...?

If given as a sequence of args, the definitionScript is created by making a list of those arguments and evaluating that as if it was given as a definitionScript. Supported definitions for use in the definitionScript are:

constructor argList bodyScript
deletemethod name ?name ...?
destructor bodyScript
export name ?name ...?
filter ?methodName ...?
forward name cmdName ?arg ...?
method name argList bodyScript
mixin ?className ...?
renamemethod fromName toName
self subcommand arg ...
self script
superclass className ?className ...?
unexport name ?name ...?
variable ?name ...?