const methods()

renoX renosky at free.fr
Tue Jan 23 02:18:28 PST 2007


Andrey Khropov Wrote:
> Frits van Bommel wrote:
> > the way C++ does const sucks :P.
> Why?

I remember that this is common knowledge, but I don't remember why.

If memory serves, this is because in C++ you can 'unconst' parameters with a cast, so the compiler cannot really optimise the code.



More information about the Digitalmars-d mailing list