Example Directory send 005
|
Notes and Hints Dissecting the send command involves understanding the methods dictionary
of any Analytic Information Server type. In general the send command is translated
as a reference into the methods dictionary: ((ref (methodsOf (type object)) methodName object)) The statement : (send Increment: Score 2) is translated into ((ref (methodsOf (type Score)) Increment: ) Score 2) Each statement segment results in:
Returns:
Returns:
Returns:
Returns:
(type Score)
Returns: Directory (methodsOf (type Score))
Returns: #<Dictionary 123456> (ref (methodsOf (type Score))Increment )
Returns: #<Lambda 123456> ((ref (methodsOf (type Score) Increment: ) Score 2)
Returns: 6
Here are examples of the send function at work.
Here is the link to the current function used in this example.
Here are a number of links to other related functions.
addMethod(#void) | defMethod(#void) | methodsOf(#void) |
Here are the links to the data types of the arguments used in this example. Here are a number of links to examples having similar argument types.
Symbol
Directory
Dictionary
Analytic Information Server (AIS)AIS Component Systems
|