Redundancies often reveal bugs

Walter Bright newshound2 at digitalmars.com
Sun Oct 3 23:38:37 PDT 2010


retard wrote:
> Some languages prevent this bug by making the parameters immutable in 
> some sense (at least shallow immutability). It's even possible in Java, 
> and in one place I worked previously "final params by default" was one of 
> the rules in code review and style guides.

this(const int x, const int y) { ... }


More information about the Digitalmars-d mailing list