const, final, scope function parameters

Frank Benoit keinfarbton at googlemail.com
Sun May 27 02:59:52 PDT 2007


> I like this one, basically it's safe by default and saves typing in the most
> common case, it would also avoid the problem I see in c++ sometimes, that
> people don't write const because it's more typing. Walter please
> reconsider, const by default will be worth any initial hassle.

i still second that.
with save default: the compiler will force the user to make the param
mutable if needed.
without save default: it will not complain, when mutable is not needed.



More information about the Digitalmars-d mailing list