Sujet : Re: New VSI post on Youtube
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 21. Aug 2024, 02:51:46
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va3h7h$3iue9$15@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Pan/0.159 (Vovchansk; )
On Tue, 20 Aug 2024 21:35:44 -0400, Arne Vajhøj wrote:
On 8/20/2024 9:25 PM, Lawrence D'Oliveiro wrote:
>
On Tue, 20 Aug 2024 09:47:36 -0400, Arne Vajhøj wrote:
>
Few languages support multiple return values.
Even in C and Fortran, a function can return a struct.
Yes. But that is returning a single value - just a composite value.
The distinction between “multiple value” versus “single composite value”
is an artificial one specific to languages like Lisp. Python, for example,
is quite happy with constructs like
a, b = struct.unpack("hh", b"\x00\x00\xff\xff")
And I think also JavaScript works that way.