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). -- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson