Workarounds for Lack of Mutable Keyword
Janice Caron
caron800 at googlemail.com
Thu Apr 3 03:15:21 PDT 2008
On 03/04/2008, Janice Caron <caron800 at googlemail.com> wrote:
> const means "I promise not to modify this". There is absolutely no
> problem with promising not to modify something which is invariant.
There is, of course, a /huge/ problem with promising not to modify
something while keeping your fingers crossed behind your back.
Promising not to modify something (which is what accepting a const
parameter means), and then modifying it anyway, is called lying.
More information about the Digitalmars-d
mailing list