D and Nim

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 4 22:22:32 PST 2015


On Mon, Jan 05, 2015 at 05:18:36PM +1100, Daniel Murphy via Digitalmars-d wrote:
> "Ary Borenszweig"  wrote in message news:m8d6g5$hna$1 at digitalmars.com...
> 
> >Are there proofs of percentage of bugs caused by incorrectly mutating
> >variables that were supposed to be immutable? I don't remember having such
> >bug in my life.
> 
> Every C++ programmer has hit this bug at some point:
> 
> struct S
> {
>    int a;
>    S(int a)
>    {
>        a = a;
>    }
> };

I actually hit this bug in D. :-/


T

-- 
Nearly all men can stand adversity, but if you want to test a man's character, give him power. -- Abraham Lincoln


More information about the Digitalmars-d mailing list