|
Example Date addMethod 016
|
This example defines a method named getMonth that is invoked when the Number
type receives a getMonth message. The getMonth method prints out
the current full month name string. In this example, the {proc} argument is coded inline
using a lambda statement.
Notes and Hints To view the entry in the methods Dictionary created by the addMethod function,
you can use the method name to access the dictionary entry by #<Dictionary 123456>[methodName:] or To determine the number of assigned methods: (length (methodsOf Date: )) To access the nth method name: (methodsOf Date: )[n 0]
Returns:
Returns:
Returns:
Here are examples of the addMethod 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.
defmethod(Date) | send(Date) | methodsOf(Date) |
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.
Date
Symbol
Dictionary
|
How do I contact the AIS Server team?You can always talk with the AIS at aiserver.sourceforge.net. |