const, final, scope function parameters

Henning Hasemann hhasemann at web.de
Sun May 27 07:44:00 PDT 2007


On Sun, 27 May 2007 11:59:52 +0200
Frank Benoit <keinfarbton at googlemail.com> wrote:

> 
> > 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.

ack. Default to const seems reasonable to me too.

Henning

-- 
GPG Public Key: http://keyserver.veridis.com:11371/search?q=0x41911851
Fingerprint: 344F 4072 F038 BB9E B35D  E6AB DDD6 D36D 4191 1851



More information about the Digitalmars-d mailing list