Is the address-of operator (&) really needed?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Fri Jun 1 08:57:53 PDT 2012
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.
More information about the Digitalmars-d
mailing list