Unnamed parameter with default value

via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 17 08:15:43 PDT 2014


Is there any particular reason why this is accepted? (I
introduced it by mistake):

      void foo(int = 3) {}

I guess it could be useful to ensure binary compatibility when
you expect to add the parameter later?


More information about the Digitalmars-d mailing list