D.1 FPC mode

This mode is selected by the $MODE FPC switch. On the command line, this means that you use none of the other compatibility mode switches. It is the default mode of the compiler (-Mfpc). This means essentially:

  1. You must use the address operator to assign procedural variables.
  2. A forward declaration must be repeated exactly the same by the implementation of a function/procedure. In particular, you cannot omit the parameters when implementing the function or procedure.
  3. Overloading of functions is allowed without overload modifier.
  4. Nested comments are allowed.
  5. The Objpas unit is NOT loaded.
  6. You can use the cvar type.
  7. PChars are converted to strings automatically.
  8. Strings are shortstrings by default.