Compiler Magic Functions
This is the collection of Language topics for Oxygene
Language Topics Introduction | Structured Overview | Grammar | Keywords | 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.
- assert()
- assigned()
- bridge<T>() — Cocoa only
- chr()
- coalesce()
- dec()
- default()
- disposeAndNil()
- duck<T>()
- futureAssigned()
- high()
- iif()
- inc()
- length()
- low()
- ord()
- selector() — Cocoa only, and strictly speaking a keyword
- sizeOf()
- typeOf()
- unquote()
- unsignedShr() —Java only
- valueOrDefault()
- write() and writeLn()