The SENDID Statement
Next: C.4 A Simple Example
Up: C.3 The VOOPS Syntax
Previous: The SEND Statement
- Synopsis:
-
<
(SENDID id name {arguments})>
The method name (a LISP symbol) of the class with the given id
(a C expression in a LISP string) is applied to the arguments. This statement may also appear anywhere in a template source file,
but uses the id to access the function pointer in the class table to
invoke the method name rather than an object like SEND does.
-
- Note: The intrinsic difference between the SENDCLASS/SENDSELF/SENDPRIVATE and SEND/SENDID statements is that in the former case
the class on which the method is defined is already known during compile
time, whereas in the latter case this class is determined at run time!
Therefore the former statements can be directly translated into a C function
call, whereas the latter need to access the class table to find out the
correct class, thus producing slightly less efficient code.
Martin Stiftinger
Tue Nov 29 19:41:50 MET 1994