Oxygene (programming Language) - Differences Between Native Delphi and Oxygene

Differences Between Native Delphi and Oxygene

  • 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 Delphi Prism 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
  • string: Characters in strings are zero-based and read-only. Strings can have nil values, so testing against empty string is not always sufficient.

Read more about this topic:  Oxygene (programming Language)

Famous quotes containing the words differences, native and/or delphi:

    “The differences between revolution in art and revolution in politics are enormous.... Revolution in art lies not in the will to destroy but in the revelation of what has already been destroyed. Art kills only the dead.”
    —Harold Rosenberg (1906–1978)

    “It seems as if the more youthful and impressible streams can hardly resist the numerous invitations and temptations to leave their native beds and run down their neighbors’ channels.”
    —Henry David Thoreau (1817–1862)

    “At Delphi I prayed
    to Apollo
    that he maintain in me
    the flame of the poem
    and I drank of the brackish
    spring there....”
    —Denise Levertov (b. 1923)