Sujet : Re: Ichbiah 2022 compiler mode
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.adaDate : 12. Sep 2024, 23:24:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbvpmt$esm6$7@dont-email.me>
References : 1 2 3 4
User-Agent : Pan/0.160 (Toresk; )
On Wed, 11 Sep 2024 23:39:27 -0500, Randy Brukardt wrote:
"Lawrence D'Oliveiro" <ldo@nz.invalid> wrote in message
news:vbdk2t$hj0r$6@dont-email.me...
On Thu, 5 Sep 2024 19:03:22 -0500, Randy Brukardt wrote:
...
(10) Variable-returning functions are introduced.
>
Is this like updater functions in POP-11, or "setf" in Lisp?
No, it is a function that returns a variable, meaning you can assign
into the function result.
I think an updater function would be more generally useful. Because some
things you want to update might not (depending on the implementation) live
independently in an explicit variable. And it seems good not to constrain
implementations unnecessarily.