Is there any hope for "lazy" and @nogc?

Jacob Carlborg doob at me.com
Sat Aug 4 19:09:42 UTC 2018


On 2018-08-02 13:33, Steven Schveighoffer wrote:

> // variadic lazy paramters
> void bar(int delegate()[] items...)
> {
>     writeln(items[0]());
>     writeln(items[1]());
>     writeln(items[2]());
> }

Adding @nogc to this example works.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list