Keywords

Oxygene, being Pascal-based, is a rich and expressive language that heavily relies on keywords over obscure syntaxes to express itself. In Oxygene, the following words are treated as keywords and have special meaning:

Legacy Keywords

Delphi Compatibility

The following keywords are only active when Delphi Language Compatibility is enabled:

  • cdecl — method calling convention modifier (ignored)
  • create — allows calling Constructors using ".Create"
  • finalize — allows calling Finalizers using ".Finalize"
  • function — alias for method (but must have a return type)
  • library — warning directive for platform-specific code (ignored)
  • overload — member modifier, ignored (Oxygene allows overloading implicitly)
  • packed — modifier for Records, ignored
  • pascal — method calling convention modifier (ignored)
  • platform warning directive for platform-specific code (ignored)
  • procedure — Alias for method (but must not have a return type)
  • publishedMember Visibility Levels, treated same as public
  • reference to — marks a function pointer as Block (ignored)
  • register — method calling convention modifier (ignored)
  • safecall — method calling convention modifier (ignored)
  • stdcall — method calling convention modifier (ignored)
  • strict — declares a static methods w/o access to the class metadata (ignored)