Is the address-of operator (&) really needed?

Sandeep Datta datta.sandeep at gmail.com
Fri Jun 1 10:48:09 PDT 2012


On Friday, 1 June 2012 at 15:58:04 UTC, Andrej Mitrovic wrote:
> On 5/31/12, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
>> 2. Just because ref is often better than a pointer doesn't 
>> mean that it's
>> never valuable to be able to pass a pointer to a variable.
>
> 5. And '&' documents code better at the call site. I personally 
> refuse
> to use out/ref arguments because the call site makes it 
> ambiguous
> whether an argument is passed by reference or not.

Please see 
http://forum.dlang.org/post/ycwrmmvnpdwkonjwogax@forum.dlang.org


More information about the Digitalmars-d mailing list