Pretty please: Named arguments

Stewart Gordon smjg_1998 at yahoo.com
Wed Mar 2 09:55:12 PST 2011


On 01/03/2011 11:59, spir wrote:
<snip>
> On the other hand, I would like it still be possible to write:
> void f (x=0, y=0) {...}
> ...
> f(y=1);
<snip>

It would.  And it would still set the variable y in the calling scope to 1, and then call 
f(1, 0).

Stewart.


More information about the Digitalmars-d mailing list