Delphi language features

From LibreDevelop
Revision as of 22:13, 8 May 2013 by Chronos (talk | contribs) (Created page with "* Statements * Variables (var) * Constants (const) * Name spaces (namespace) * Direct access to memory (pointers, directive absolute) * Compiler directives: IFDEF, ENDIF, DEFI...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
  • Statements
  • Variables (var)
  • Constants (const)
  • Name spaces (namespace)
  • Direct access to memory (pointers, directive absolute)
  • Compiler directives: IFDEF, ENDIF, DEFINE, ...
  • Operators (and, or, xor, not, shl, shr, +, -, /, *, div, mod, as, in, ...)
  • Expressions (parenthesis, operator priority, infix notation)
  • Assignment (:=)
  • Function overloading (overload)
  • Integrated assembler (asm-end)
  • Subroutines (function, procedure)
    • Nested functions
    • Functions parameters
    • Inlined code (inline)
  • Types (type)
    • Elementary
      • Enumeration (Boolean, ...)
      • Subrange (0..100, ...)
      • Ordinals (SmallInt, Byte, Integer, Word, Cardinal, Int64, ...)
      • Floating numbers (Real, Single, Double, Extended, ...)
      • Characters (Char, WideChar, AnsiChar, ...)
      • Strings (String, ShortString, AnsiString, WideString, PChar, ...)
      • Pointers (Pointer, @, ^)
      • Variant
      • Procedural types
    • Composed
      • Array, static/dynamic
      • Record
        • Překrývání proměnných (variant records): case Integer of...
        • Packed
        • Operator redefinition
        • Advanced with constants,types,variables,procedure/functions
      • Set
      • Class
        • Visibility (published, public, private, protected)
        • Methods (procedure, function)
          • Virtual methods (virtual, override)
          • Inlined (inline)
        • Inheritance (inherited)
        • Properties (property, default, indexed)
        • Events (property with function type)
        • Nested definitions
        • Constructors and destructors (constructor, destructor)
      • Interface (interface)
  • Globals (variables, constants, types, functions)
  • Modularity (unit)
    • Initialization (initialization)
    • Finalization (finalization)
    • Sections (interface, implementation)
  • Controls structures
    • Condition (if-then-else)
    • Loop with known cycle count (for-to-do)
    • Loop (repeat-until)
    • Loop (while-do)
    • Loop exit (break)
    • Jump to next iteration (continue)
    • Compound statement (begin-end)
    • Multiple branching (case-of)
    • Context change (with-do)
    • Exception raise (raise)
    • Exception handling (try-except)
    • Exception finalization (try-finally)
    • Loop with enumerators (for-in-do)
  • Parametric types (generics)
  • Translation strings (resourcestring)
  • Thread local variables (threadvar)
  • Reference counting (interface)
  • Automatic memory management (memory manager)

Historic features

  • File types (file, text)
  • Direct jump (goto, label)