doubly-lazy variadics?

Walter Bright newshound at digitalmars.com
Sat Sep 2 12:59:50 PDT 2006


Don Clugston wrote:
> I noticed that DMD 0.166 accepts
> 
> void func(lazy int delegate()[] ...)
> {
> }
> 
> It's not documented -- what does it mean?
> 

What it means is an array literal is created out of the arguments, which 
is then wrapped in a delegate.

That cannot work until array literals are implemented.



More information about the Digitalmars-d mailing list