Sujet : Re: The joy of FORTRAN
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 30. Sep 2024, 22:44:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vdf63r$2cn51$10@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Pan/0.160 (Toresk; )
On Mon, 30 Sep 2024 12:35:48 -0000 (UTC), Waldek Hebisch wrote:
In my world blank padding is simply wrong result. Truncation too.
Agree about blank padding -- PL/I had VARYING strings which allowed for
explicit lengths. But there was still a maximum length, so what happens if
you would exceed that? You have to truncate (or perhaps raise an error).
The only proper solution is fully dynamically-allocated strings, à la
BASIC, Perl, Python etc.