On 12/10/10 4:10 PM, foobar wrote:
Don Wrote:
Steven Schveighoffer wrote:
To summarize for those looking for the C++ behavior, the equivalent
would be:
void foo(auto ref const Widget)
That use of 'auto' is an abomination.
I agree with don.
IMHO, this is incredibly silly given Andrei's use case, since D can have
instead:
void foo(const Widget);
and have an optimization inside the compiler for value types to pass by ref.
Everyone - please stop suggesting that. It causes severe undue aliasing
issues.
Andrei