You mean people would feel forced to leave out the argument name just
to silence the compiler?

I can only see that happening for functions in interface classes that
defines some kind of callback, and that for some reason need to have a
(more or less) dummy body (the warning should of course be disabled
for pure declarations).

In such cases I'd be fairly satisfied with the option of providing a
more complete function declaration using @decl in a refdoc comment.

If worst comes to worst, it's always possible to give a name in a
comment instead:

  string chop_chop (object /*context*/, string data) {return data;}
  • Unused vari... Martin Stjernholm, Roxen IS @ Pike developers forum
    • Unused... Per Hedbor () @ Pike (-) developers forum
      • Un... Martin Stjernholm, Roxen IS @ Pike developers forum
    • Unused... Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
      • Un... Martin Stjernholm, Roxen IS @ Pike developers forum
    • Unused... Martin Stjernholm, Roxen IS @ Pike developers forum
      • Un... Peter Bortas @ Pike developers forum
        • ... Marcus Agehall (Roxen IS) @ Pike (-) developers forum
          • ... Peter Bortas @ Pike developers forum
            • ... Per Hedbor () @ Pike (-) developers forum
              • ... Peter Bortas @ Pike developers forum
                • ... Per Hedbor () @ Pike (-) developers forum
                • ... Peter Bortas @ Pike developers forum
          • ... Martin Stjernholm, Roxen IS @ Pike developers forum
            • ... Stephen R. van den Berg
              • ... Martin Stjernholm, Roxen IS @ Pike developers forum

Reply via email to