Optimised 'does - qtxie/red GitHub Wiki
In Red/System version1 'DOES is simply shorthand for func []. It could be optimised by:
- Storing the address of the following statement.
- Compiling the code in the 'DOES block with a branch to the stored return address.
- Branching to the start of the code of the 'DOES block.