Optional out parameter of function

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Wed Nov 27 02:41:36 PST 2013


On 27/11/13 11:15, Jonathan M Davis wrote:
> Personally, I think that it's by far the best approach to just do
>
>       int foo(int i)
>       {
>           int j;
>           return foo(i, j);
>       }
>
> It's clean, and I really don't see a big problem with it.

Yea, that's really the conclusion I had already come to.  I emailed the list 
because I wondered if there was a friendly syntax to enable one to quietly drop 
a parameter, as one might do for an in-parameter.


More information about the Digitalmars-d-learn mailing list