modifier

From Free Pascal wiki
Revision as of 17:56, 28 January 2021 by Kai Burghardt (talk | contribs) (→‎hint directives: add $warn)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

English (en) Esperanto (eo) suomi (fi) français (fr)

Modifiers are keywords modifying the standard behavior of a Pascal language construct, although some modifiers merely serve the purpose of being a hint to the compiler.

declaration modifiers

allocation

routines

hint directives

If {$modeSwitch hintDirectives+}, the following hint modifiers are available too:

  • deprecated
  • experimental
  • platform
  • unimplemented

These “modifiers” actually have no effect on the generated code, but can be promoted to errors using {$warn} (so, for example, in order to ensure deprecated functionality is not used in a release version).

call modifiers

calling convention

routine behavior hints

  • IOCheck
  • noReturn

position

optimization requests

other

  • assembler
  • softFloat

properties

  • default
  • index
  • noDefault
  • read
  • stored
  • write

object-oriented programming

access modifiers

virtual methods

classes

  • enumerator
  • static
  • implements
  • message

miscellaneous

loops

generics

  • generic
  • specialize

libraries

memory

type helpers

  • helper

see also