Wish: Variable Not Used Warning

Sean Kelly sean at invisibleduck.org
Tue Jul 8 09:25:44 PDT 2008


== Quote from Jarrett Billingsley (kb3ctd2 at yahoo.com)'s article
> "Sean Kelly" <sean at invisibleduck.org> wrote in message
> news:g4vvtg$2237$1 at digitalmars.com...
> > And regarding this particular issue, it's not uncommon to have unused
> > function parameters.  And while C++ allows them to be left out:
> >
> > void fn( int ) {}
> >
> > D does not.  A warning for this would be terribly annoying.
> Are you sure about that?  Cause that compiles and runs in D.

Really?  It didn't used to :-)


Sean



More information about the Digitalmars-d mailing list