breve Documentation: version 1.9 | ||
---|---|---|
<< previous | Chapter 4. Interactions Between Agents | next >> |
If you need to know whether an item can respond to a certain method call, use the method can-respond in Object.tz. As with is, this method is used like a statement that returns true or false:
if (item can-respond to "sing-and-dance"): item sing-and-dance. |
<< previous | breve Documentation table of contents | next >> |
Finding All Objects of a Given Type | up | Testing the Type of an Object |