digitalmars.D.bugs - [Issue 6987] New: The "Memory Management" documentation incorrectly claims arrays are passed by reference.
- d-bugmail puremagic.com (22/26) Nov 22 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6987
- d-bugmail puremagic.com (7/7) Nov 22 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6987
- d-bugmail puremagic.com (6/6) Dec 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6987
- d-bugmail puremagic.com (11/11) Jan 21 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6987
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.htmlConsider 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: -------
Nov 22 2011
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: -------
Nov 22 2011
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: -------
Dec 11 2011
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: -------
Jan 21 2012