Example Boolean defmethod 012
|
This example defines a method and a message named toEnglish
that converts the Boolean Value, true, to the English word "Yes" and
converts the Boolean value, false, to the English word "No".
Notes and Hints To view the entry in the methods Dictionary created by the defmethod function,
you can use the method name to access the directory entry by #<Dictionary 123456>[methodName:] or To determine the number of assigned methods: (length (methodsOf Boolean: )) To access the nth method name: (methodsOf Boolean: )[n 0]
Returns:
Returns:
Returns:
Returns:
Returns:
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.
Symbol
Dictionary
Analytic Information Server (AIS)AIS Component Systems
|