Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 22, 2011 [Issue 6987] New: The "Memory Management" documentation incorrectly claims arrays are passed by reference. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6987 Summary: The "Memory Management" documentation incorrectly claims arrays are passed by reference. Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: websites AssignedTo: nobody@puremagic.com ReportedBy: blood.of.life@gmail.com --- Comment #0 from Bernard Helyer <blood.of.life@gmail.com> 2011-11-22 03:50:14 PST --- http://www.d-programming-language.org/memory.html >Consider the case of passing an array to a function, possibly modifying the contents of the array, and returning the modified array. Since arrays are passed by reference, not by value, a crucial issue is who owns the contents of the array? The semantics of using an array passed to a function may be reference like, but the array is most certainly not 'passed by reference'. Glossing this over will lead to confusion for people later on when they resize an array passed to a function and wonder why the changes haven't been reflected at the call site. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 22, 2011 [Issue 6987] The "Memory Management" documentation incorrectly claims arrays are passed by reference. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | http://d.puremagic.com/issues/show_bug.cgi?id=6987 --- Comment #1 from Bernard Helyer <blood.of.life@gmail.com> 2011-11-22 03:53:26 PST --- I would suggest something like "as the contents of an array are accessed through a reference..." -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 12, 2011 [Issue 6987] The "Memory Management" documentation incorrectly claims arrays are passed by reference. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | http://d.puremagic.com/issues/show_bug.cgi?id=6987 --- Comment #2 from Bernard Helyer <blood.of.life@gmail.com> 2011-12-11 20:27:59 PST --- https://github.com/D-Programming-Language/d-programming-language.org/pull/43 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 21, 2012 [Issue 6987] The "Memory Management" documentation incorrectly claims arrays are passed by reference. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | http://d.puremagic.com/issues/show_bug.cgi?id=6987 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |spec Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation