In our previous episode, Graeme Geldenhuys said: > I'm busy writing a Object Pascal grammar section for the Language Reference > doc. > > In the ref.pdf (page 144) it says that the PROGRAM line can contain > 'program parameters', but is ignored by the compiler. Can anybody explain > these "program parameters" and when and how they were actually used? I'm > just curious. This obviously stems from the original Pascal days.
In original pascal you had to specify all opened files there, including input/output. This was used by some OSes for their file I/O (e.g. VMS, where afaik the shell allocates memory and handles for open files). There was also some functionality for unnamed files (temporary ones). If you want details, talk to the GPC people, read their docs (or Scott Moore's site) But usually there were assign() like non standarized workarounds to open files later than at program start. > Syntax is as follows: > > Program -> PROGRAM Ident ['(' IdentList ')'] ';' > ProgramBlock '.' Strange. Where are the modifiers (deprecated etc)? Or where unit level modifiers post D7 ? _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal