call (instance, method, !argument...) call (instance, class, method, !argument...)
An instance of a class.
A method name defined for the class of the instance.
A class name.
The arguments to the method.
This function explicitly calls a class method for the provided instance, using the same argument list as would be required for a call using (instance method ...) syntax in Lisp, or the instance.method (...) syntax in Gamma. The second syntax of this function provides a means for calling an explicit class method even if the class of the instance overloads the method name. Notice that the arguments to call are all evaluated.
![]() | This example is based on the class and method developed in method. |
Gamma> call(sqB, Square, #perimeter); 12 Gamma> call(sqB, Square, #area); 9 Gamma>
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.