Private default function arguments

Clemens eriatarka84 at gmail.com
Fri Jan 15 00:51:56 PST 2010


Clemens Wrote:

> Why not this?
> 
> void foo(int x)
> {
>     void fooImpl(int x, int depth);
>     {
>         // ...
>     }
> 
>     fooImpl(x, 0);
> }
> 

Ah, and I guess you should make fooImpl static if you don't intend to access foo's x parameter directly.



More information about the Digitalmars-d mailing list