[Block] run | Manual

[Block] run

Sending the unary message 'run' to a block will cause it to execute. The run message takes no arguments, if you want to use the block as a function and send arguments, consider using the applyTo-family of messages instead. This message just simply runs the block of code without any arguments.
Usage:

 
 { Pen write: 'Hello World'. } run. #prints 'Hello World'
 
 The example above will run the code inside the block and display
 the greeting.

back to homepage
back to manual menu

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