|
send
|
The send special form invokes a method of an object.
The methods invocation may include 0 or more arguments. When to use The send special form can only be used on a method that has been installed
in the Methods Dictionary for an object via the defmethod macro or the
addMethod function. The Methods Dictionary for any Analytic Information Server
native type or object contains an arbitrary number of method bindings, i.e. method
name and Lambda pairs. The send Special Form causes a lookup of the method
name argument in the methods dictionary. If the name is found, the Lambda attached
to the name will be invoked.
(send methodName object) (send methodName object arg1 arg2...) (methodName object) (methodName object arg1 arg2 ...) Dependent on the method invoked
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
This example defines a method named doubleThis that is invoked when the Number
type receives an double message. The doubleThis method doubles its
numeric argument.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types methodName The name of the method to be invoked Symbol object The target object (the object owning the method that was specified in the
methodName argument String Symbol Vector Structure Dictionary Number ObjectRepository
Pair List Brick Directory Matrix Void Character Date
Returns:
Examples
Argument Types
String
Symbol
Structure
Directory
Vector
Brick
Date
ShortVector
Lambda
ObjectRepository
Pair
List
Matrix
Text
Dictionary
Void
Character
Number
Function
NumMatrix
How do I contact the AIS team?