Sujet : Re: on call by reference
De : alicetrillianosako (at) *nospam* gmail.com (Schol-R-LEA)
Groupes : comp.lang.schemeDate : 21. Mar 2024, 02:59:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utg0ok$1qefr$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
Alan Bawden:
Schol-R-LEA <alicetrillianosako@gmail.com> writes:
Johanne Fairchild:
> I tried to answer whether Scheme was call-by-reference and I did not
> think the definition of call-by-reference seen on the web is precise
> enough.
Scheme is call-by-value; arguments to procedures are copied into the
parameters in the procedure's environment. As I understand it, even when
the argument is a reference - such as with a list - a full copy of the
argument is made local to the procedure.
If by "a full copy" you mean that a list passed to a procedure will be
copied, then you are mistaken.
Ah, thank you for the correction.