Logical const

so so at so.do
Tue Nov 30 13:09:45 PST 2010


> Wouldn't be surprising to you?
>
> -Steve

No need to go that far.

void fn(const A, A) {...}
A a;
fn(a, a); // what do you expect here?

As far as i know D/C++ have the same treatment for const member functions.
It has been this way forever.

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


More information about the Digitalmars-d mailing list