D and Nim

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 4 22:33:02 PST 2015


"H. S. Teoh via Digitalmars-d"  wrote in message 
news:mailman.4136.1420439089.9932.digitalmars-d at puremagic.com...

> >
> > struct S
> > {
> >    int a;
> >    S(int a)
> >    {
> >        a = a;
> >    }
> > };
>
> I actually hit this bug in D. :-/

I like that I can just not define a constructor in D structs and it will 
still let me create them with S(0).  I get to drop at least some of my 
useless init functions. 



More information about the Digitalmars-d mailing list