Compiler Magic Functions
Oxygene provides a list of so called Compiler Magic Functions, helper functions perform commonly needed tasks. In some cases, these tasks could be expressed otherwise, and the helper function is merely a convenient shortcut (such as with assigned()) while in other cases the helper function might expose underlying compiler functionality to accessible otherwise (such as for example with duck<T>()).
By default, these functions are automatically in scope without the need to use a namespace or class name prefix. However, if conflicts should arise with other declared identifiers (for example a member of the same name in a nearer scope, such as a local variable or a property/method on the current class), they can be accessed using their full RemObjects.Oxygene.System namespace prefix.
- bridge<T>() — Cocoa only
- selector() — Cocoa only, and strictly speaking a keyword
- unsignedShr() —Java only
- write() and writeLn()