Next: , Previous: , Up: The Object Type   [Index]


8.3 Calling Objects

Like functions, ‘object’s may be called. The "function" signature of an ‘object’ expression is:

object (*)(&...)

object’ calls are transformed to ‘call’ function calls, with the called object becoming the first argument to ‘call’.

See Function Callers.

Arguments of ‘object’ calls may be given in any number and type, with mismatches causing execution errors.

See Function Pointer Data Structure Retrieval.

Both:

__object(o_text)("ABC");

and:

l_effect(o_)[0]("ABC");

will print ABC.