[fpc-pascal] About reset(aFile, FileNameString)
Lance Boyle
lanceboyle at cwazy.co.uk
Wed Sep 14 05:20:50 CEST 2005
Thanks for the pointers 8^), y'all.
Lance
On Sep 13, 2005, at 8:02 PM, Adriaan van Os wrote:
> 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.
Thanks for the correction. I guess I never have used actual "Wirth"
Pascal and had forgotten that even assign() is an 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.
Nice. 8^)
>
> Regards,
>
> Adriaan van Os
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list