[r6rs-discuss] [Formal] Confusing comparison with Pascal call-by-reference

From: Mikael Tillenius <mti>
Date: Tue Feb 20 03:56:15 2007

---
This message is a formal comment which was submitted to formal-comment_at_r6rs.org, following the requirements described at: http://www.r6rs.org/process.html
---
Submitter: Mikael Tillenius mti_at_tillenius.com
Issue: Defect
Priority: Minor
Component: Concepts
Version: 5.92
Summary: Confusing comparison with Pascal call-by-reference
Description: In section 1, top of right column on page 6 of the report, 
argument passing is discussed. Quote "Note that call-by-value refers to 
a different distinction between by-value and by-reference passing in 
Pascal. In Scheme, all data structures are passed by reference." This 
seems to imply that Scheme passes arguments similar to how Pascals 
call-by-reference. This is not true, for example call-by-reference would 
make it possible to implement a procedure "swap" so that a call "(swap a 
b)" would swap the values of "a" and "b".
Proposal: Remove both sentences quoted above, or at least the last one.
/Mikael
Received on Sun Feb 18 2007 - 06:47:01 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC