| The constructor of the "Function" class |
| Declaration: |
| function constructor( void o, string f ) |
| Description: |
| The constructor of the "Function" class can either be called with the absolute name of a function (eg. "Console.println") or with an object and the name of a method within the object (eg. Console.stdout, "printf"). The specified function will be associated with the newly created "Function" object. |
| Parameters: |
| Parameter #1: void o - The container the function is a member of (optional) |
| Parameter #2: string f - The name of the function |
| Example: |
class TestClass {
function g( string name ) {
}
}
function f( string name ) {
}
object t = new TestClass();
object o = new Function('f');
object p = new Function(t, 'g');
|