Oxygene Language Syntax Compared to Delphi

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.



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


Overview of new and enhanced functionality


New Keywords


Keywords with Changed Usage


Keywords not supported by Oxygene

  • resourcestring
  • 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 that can be inlined.
  • unsupported member directives, including deprecated, library, platform, inline, overload, stdcall, cdecl and static


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


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox