class Variable

This class allows you to wrap a variable and access the accessor mechanism provided by ferite.

Example

uses "console", "reflection";

class VariableWatcher extends Variable {
    function get() {
        Console.println( "get called" );
        return "har";
    }
    function set( void value ) {
        Console.println( "set called: $value" );
    }
    function cleanup() {
        return "cleanup called";
    }
}

string v = "";
object o = new VariableWatcher(v);
v = "hi";
Console.println( v );

class contents [NB. Highlighted attributes are static members]
Variables
variable Reflection - Provides a function for runtime inspection of variables
Functions
function constructor(void) - The constructor for a variable class.

Functions

function constructor Click to go up to the list
The constructor for a variable class.
Declaration:
    function constructor( void var )
Parameters:
    Parameter #1: void var - The variable to wrap.

Automatically generated at 12:07PM, Wednesday 25 May 2005 by feritedoc.