Sujet : Re: Simple Pascal question
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 04. Aug 2024, 23:19:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8ouon$8t63$5@dont-email.me>
References : 1 2 3 4 5
User-Agent : Pan/0.159 (Vovchansk; )
On Sun, 4 Aug 2024 10:51:20 -0400, Arne Vajhøj wrote:
On 8/4/2024 8:22 AM, Dan Cross wrote:
>
An old annoyance about Pascal was that the size of an array is part of
it's type, which makes writing functions and procedures that work
across differently sized arrays challenging.
In original Wirth Pascal. Most implementations has solutions.
ISO Pascal added “conformant arrays”, where the array bounds were passed
as separate arguments. I don’t think you ever saw these on the micros,
which persisted with their UCSD-Pascal derivatives. But you did on the
bigger machines.
Also I didn’t know before, but there is an official spec for “Extended
Pascal”, too: ISO 10206.