Classes | Core > Kernel

FunctionDef : Object

FunctionDefs contain code which can be executed from a Function.
Subclasses: Method


Related Keywords


The global pseudo-variable thisFunctionDef always evaluates to the current enclosing FunctionDef.

See also: thisFunction

Class Methods

Inherited class methods

Instance Methods


Even though it is possible to change the values in the various arrays that define the FunctionDef, you should not do it, unless you like to crash.


Get the byte code array.


Get the source code string.


Get the enclosing FunctionDef or Method.

.findReferences(aSymbol, references)

return a list of all references to a given symbol.


Get the Array of Symbols of the argument names.


Get the array of default values for argument and temporary variables.


Get the Array of Symbols of the local variable names.

.argumentString(withDefaultValues: true)

Return a string that contains arguments and their default values for embedding in a string


Get the Array of Symbols of the local variable names.



"Disassemble" and post the FunctionDef's byte code instructions to the text window.

Inherited instance methods

Undocumented instance methods