Lance Boyle wrote:

"Official" Pascal for opening a file and associating a name with it (e.g., a disk file) goes like this:

assign(aFile, FileNameString);
reset(aFile); {or rewrite, etc.}

Assign is not "official" Pascal but a non-standard Turbo/Borland/Delphi Pascal extension.

All of the Pascals that I have used allowed the following shorthand, an extension:

reset(aFile, FileNameString); {or rewrite, etc.}

"FileNameString" also is a non-standard (non-ISO) Pascal extension ....

At least one of these Pascals was not a Macintosh Pascal, so I never considered it a "Mac" extension. Yet, I can find no possibility of this in FPC, in spite of its various compatibility modes.

... but indeed many Pascal compilers support it.

Regards,

Adriaan van Os

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to