Example Structure defmethod 005
|
Notes and Hints To view the entry in the methods Dictionary created by the defMethod function,
you can use the message name to access the dictionary entry by #<Dictionary 123456>[msgName:] or To determine the number of assigned methods: (length (methodsOf Structure: )) (length (methodsOf StockTransaction: )) To access the nth method name: (methodsOf Structure: )[n 0] (methodsOf StockTransaction: )[n 0] To view the Methods Dictionary:
Returns:
Returns:
Returns:
Returns:
(display (methodsOf Structure: ))
Returns: #{dic| addValues #<Lambda 123456>} (display (methodsOf StockTransaction: ))
Returns: #{dic| ComputeProfit #<Lambda 123456>}
Here are examples of the defmethod 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) | send(#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.
Structure
Symbol
Dictionary
Analytic Information Server (AIS)AIS Component Systems
|