Destructors, const structs, and opEquals

so so at so.do
Sat Dec 4 03:58:08 PST 2010


> I'm a bit uncertain as to how this is all supposed to work.
> (1) Should temporaries be allowed to be passed as 'const ref'?

Rather, what keeps compiler from interpreting "A fun()" like "const ref A  
fun()" when it is necessary?
After all D's const system has no holes in this case unlike C++.

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d mailing list