Peter N Lewis wrote:
I agree with Frank. Pascal usually has exactly one way to access something, which follows from the logical construction of that something.
Umm, except for:
- Case variant records
What do you mean here? CASE boolean OF ... ? There is still a prohibition, even if often not heeded, against accessing items that were not last written.
- Variables passed by reference (but still within scope)
Granted. References to input and output will often have this characteristic.
- Variables referenced by pointer
No such thing in standard Pascal. Pointers are only initialized by new.
- Optionally qualified variables
Again, what do you mean here?
and no doubt there are quite a few other ways to access something by more than one method.
bearing in mind that we (at least I) am talking about Standard or even Extended Pascal (ISO7185 or 10206).