Oxygene Syntax compared with Delphi

From RemObjects Software

Jump to: navigation, search

This is a Oxygene How To entry
Feel free to add your notes to this topic below.



This page provides a summary of Oxygene syntax differences for customers familiar with Delphi.


Overview of new and enhanced functionality


New Keywords


Keywords with Changed Usage


Keywords not supported by Oxygene

  • assembly/asm Inline assembly code isn't supported by Oxygene (or .NET for that matter). Inline assembly is made out of CPU specific instructions, which won't work under the .NET runtime.
  • inline Method - inline hint keywords are not supported as the .NET runtime automatically inlines methods it thinks that can be inlined.


Deprecated Keywords

  • unit: Replaced with the namespace keyword. Since Oxygene doesn't compile per-file but per-project, it does not depend on the name of the file. Instead the unit or namespace keyword is used to denote the default namespace that all types are defined in for that file
  • procedure and function: These two keywords have been replaced with the method keyword.
  • overload: In Oxygene all methods are overloaded by default, so no special keyword is needed for this.
  • .Create(): This constructor call has been replaced by the new keyword. It can still be enabled in the project options for legacy reasons.


See Also


Product: RemObjects Oxygene (formerly known as Chrome)
Current version: 3.0 Previous Versions: 'Joyride' (2.0), 'Floorshow' (1.5), 'Adrenochrome' (1.0)

GlossaryKeywordsLanguage FeaturesPlatform FeaturesSamplesArticlesHow ToIssues

Personal tools