![]() |
|
|
|
|
|
|
3
20th November 14:39
External User
Posts: 1
|
ANY is the generic parameter which stands for the object which provides
the feature which is invoked as an agent. This object is the object on which the feature is called. TUPLE carries the arguments and BOOLEAN carries the result of the function agent. For example, given class CONTAINER; feature has (v: like item): BOOLEAN; end then the clause "agent has" is an instance of the type FUNCTION[CONTAINER, TUPLE [like item], BOOLEAN] which conforms to FUNCTION[ANY, TUPLE, BOOLEAN] When the agent is invoked, the object passed as the first argument is of class CONTAINER. -- Peter Horan School of Information Technology peter@deakin.edu.au Deakin University +61-3-5227 1234 (Voice) Geelong, Victoria 3217, AUSTRALIA +61-3-5227 2028 (FAX) http://www.cm.deakin.edu.au/~peter -- The Eiffel guarantee: From specification to implementation -- (http://www.cetus-links.org/oo_eiffel.html) |
|