Sign in Join
Wiki copytemporary

Mode iso

English · Français · Русский

FPC’s compatibility mode {$mode ISO} intends to comply with the requirements of level 0 and 1 of the ISO/IEC standard 7185. It became available in version 2.6.0. The International Organization for Standardization standard 7185 is also known as Standard “Unextended” Pascal.

Notable differences

This list highlights differences to the standard {$mode FPC} compiler compatibility mode.

program routineParameter(output);

procedure fancyPrint(function f: integer); begin

   writeLn('❧ ', f:1, ' ☙')

end;

function getRandom: integer; begin

   { chosen by fair dice roll: guaranteed to be random }
   getRandom := 4

end;

begin

   fancyPrint(getRandom);

end.

Status

Notes

It is quite possible that a different compiler rejects the same source code on grounds of non-compliance. Unlike the GNU Pascal Compiler there is no way to disable such “extensions”.


From the Free Pascal wiki, page "Mode iso", as it stood on 2022-01-21 after a change by Alextp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.