Difference between revisions of "Mode iso"

From Free Pascal wiki
Jump to navigationJump to search
(Start to describe iso mode.)
 
(Spelling and minor grammar edits)
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The mode '''ISO 7185''', switched on with '''{$mode iso}''', is compliant to Standard Pascal as described in ISO 7185.
+
{{Mode_iso}}
 +
 
 +
Starting with version 3.0.2, the mode '''ISO 7185''' (switched on with '''{$mode iso}''' in source code or '''-Miso''' on the command line) of FPC complies with the requirements of level 0 and level 1 of ISO/IEC 7185. ISO 7185 is also known as [[Standard Pascal]].
  
 
Using mode iso has the following special features:
 
Using mode iso has the following special features:
  
# external files are declared in the program heading.
+
* External files are declared as parameters in the program statement.
 
+
* Files have associated "buffer variables", and "get" and "put" procedures operate on them. This functionality is not present in other modes.
[[Category:Modes]]
+
* mod operation is as required by ISO Pascal.
 +
* Unary minus is as required by ISO Pascal.

Revision as of 02:18, 21 October 2019

English (en) français (fr) русский (ru)

Starting with version 3.0.2, the mode ISO 7185 (switched on with {$mode iso} in source code or -Miso on the command line) of FPC complies with the requirements of level 0 and level 1 of ISO/IEC 7185. ISO 7185 is also known as Standard Pascal.

Using mode iso has the following special features:

  • External files are declared as parameters in the program statement.
  • Files have associated "buffer variables", and "get" and "put" procedures operate on them. This functionality is not present in other modes.
  • mod operation is as required by ISO Pascal.
  • Unary minus is as required by ISO Pascal.