A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/LPC/types


TYPES

Variables can have one of the following types:

int:	An integer. Normally full 32 bits signed.

status:	A boolean, either 0 or 1 (same as int).

string:	A string (not pointer to string).

object: Pointer to an object.

array: Pointer to a vector of values.

All uninitialized variables have the value 0. The type of a variable is really
only a documentation, and has no effect at all on the program !
A pointer to a destructed object, will always have the value 0.

Global variables in an object can have the type modifier 'static'. This means
that they will not be saved in save_object(), or destroyed when in
restore_object().

All variables and function can have additional specifiers (special types).
This is a short summary of how special types are handled:

    'static' variables: Will not be saved at save_object(), nor modified at
    restore_object(). 'static' functions can not be called through
    call_other(). 'static' inheritance will make all inherited definitions
    'static'.

    'private' variables and functions: Can not be accessed by a sub class
    inheriting their definitions. Functions can not be called through
    call_other(). 'private' inheritance will make all variables and functions
    'private'. 

    'nomask' functions and variables can not be redefined by a sub class.
    'nomask' inheritance will make all inherited definitions 'nomask'.

    'public' variables and functions can be redefined by a sub class, even if
    they have been inherited 'private'ly. 'public' inheritance will make all
    inherited definitions 'public'. 

    The type 'protected' is reserved, but does not mean anything currently.

See also:


This page was generated in LPC

Imprint / Impressum