Deutsch English Français Italiano |
<86ttl0pmqx.fsf@williamsburg.bawden.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!bawden.eternal-september.org!.POSTED!not-for-mail From: Alan Bawden <alan@csail.mit.edu> Newsgroups: comp.lang.scheme Subject: Re: on call by reference Date: Wed, 20 Mar 2024 18:22:14 -0400 Organization: ITS Preservation Society Lines: 16 Message-ID: <86ttl0pmqx.fsf@williamsburg.bawden.org> References: <877chyiosp.fsf@tudado.org> <utetgj$1hs9g$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: bawden.eternal-september.org; posting-host="936734233a02e77bade13b16af65a299"; logging-data="1845013"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+K7sVFvnFFrHXC2Y7sH9mp" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:smO5Eq1tO5DSgCdsfXAfp7WpxkU= sha1:rqD53z5C6zsIUjp4ZKob5ww/mlE= Bytes: 1585 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. - Alan