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

--- Comment #0 from Bernard Helyer <> 2011-11-22 
03:50:14 PST ---

>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 
>by reference, not by value, a crucial issue is who owns the contents of the 

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:
------- You are receiving this mail because: -------

Reply via email to