Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Schol-R-LEA Newsgroups: comp.lang.scheme Subject: Re: on call by reference Date: Wed, 20 Mar 2024 20:59:00 -0400 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <877chyiosp.fsf@tudado.org> <86ttl0pmqx.fsf@williamsburg.bawden.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 21 Mar 2024 00:59:01 -0000 (UTC) Injection-Info: dont-email.me; posting-host="e0a575d7620ab5e169a2a9922223a30b"; logging-data="1915387"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wE3b2dmVXhLRmXTmWU1mnQB3eSDm0ZtE=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:E+/CG6lOPQ3o8tRas7FL2Sslt5s= In-Reply-To: <86ttl0pmqx.fsf@williamsburg.bawden.org> Content-Language: en-US Bytes: 1790 Alan Bawden: > Schol-R-LEA 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.