[Object] message: [String] arguments: [Array] | Manual

[Object] message: [String] arguments: [Array]

Sends a custom or 'dynamic' message to an object. This takes a string containing the message to be send to the object and an array listing the arguments at the correct indexes. If the array fails to provide the correct indexes this will generate an out-of-bounds error coming from the Array object. If something other than an Array is provided an error will be thrown as well.

 var str := 'write:'.
 Pen message: 'write:' arguments: (Array < 'Hello World').

 This will print the string 'Hello world' on the screen using a dynamically
 crafted message.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.