User's Guide

coroutineCallWithArray: message

If the external function you are calling has more parameters that can be accomodated with the coroutineCallWith:with:... message you will need to use the coroutineCallWithArray: message. You can also use this message if you find it more convenient. Simply pass each parameter as an element of the array.

OS/2 icon
Try the following script for OS/2:
| thread |
thread := [] fork.        "Create a new suspended thread"
(PlatformFunctions at: 'DosBeep')
    coroutineCallWithArray: #(440 3000)
    threadKey: thread.

UNIX icon
Try the following script for UNIX systems:
| context thread |
thread := [] fork.        "Create a new suspended thread"
context := CgDisplay default handle.
(PlatformFunctions at: 'XBell')
    coroutineCallWithArray: #(context 50)
    threadKey: thread.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]