[Top]
lfun::
lfun::
Description
Callback functions used to overload various builtin functions.
The functions can be grouped into a few sets:
Object initialization and destruction.
__INIT() , create() , destroy()
Unary operator overloading.
`~() , `!() ,
_values() , cast() ,
_sizeof() , _indices() ,
__hash()
Binary asymmetric operator overloading.
`+() , ``+() ,
`-() , ``-() ,
`&() , ``&() ,
`|() , ``|() ,
`^() , ``^() ,
`<<() , ``<<() ,
`>>() , ``>>() ,
`*() , ``*() ,
`/() , ``/() ,
`%() , ``%()
Binary symmetric operator overloading.
The optimizer will make assumptions about the relations
between these functions.
`==() , _equal() , `<() , `>()
Other binary operator overloading.
`[]() , `[]=() , `->() ,
`->=() , `+=() , `()()
Overloading of other builtin functions.
_is_type() , _sprintf() , _m_delete() ,
_get_iterator() , _search()
Note
Although these functions are called from outside the object they
exist in, they will still be used even if they are declared
protected . It is in fact recommended to declare them
protected , since that will hinder them being used for
other purposes.
See also
::
syntax
mixed lfun::` mixed `->symbol ()
Description
Variable retrieval callback (aka "getter").
Note
Note that the symbol in the name can be any symbol.
Note
This is not a true LFUN, since it is even more low level!
Note
This function WILL be called even by inheriting programs
when they attempt to access the variable named symbol .
See also
lfun::`->symbol=() , lfun::`->()
syntax
void lfun::` void `->symbol= (zero value )
Description
Variable assignment callback (aka "setter").
Note
Note that the symbol in the name can be any symbol.
Note
This is not a true LFUN, since it is even more low level!
Note
This function WILL be called even by inheriting programs
when they attempt to set the variable named symbol .
See also
lfun::`->symbol() , lfun::`->=()