Is there any hope for "lazy" and @nogc?
Steven Schveighoffer
schveiguy at gmail.com
Wed Aug 1 14:13:55 UTC 2018
On 8/1/18 3:59 AM, Shachar Shemesh wrote:
> Thank you! Finally!
>
> Let me just state, for the record, that having *yet another* syntax
> special case is just appalling.
The lazy variadic thing is a distinction between specifying variadic
lazy parameters and a lazy variadic array. The distinction is so
miniscule, but necessary to have a disambiguous syntax.
But I had actually thought for a while, that you could simply specify a
delegate, and it would be treated as a lazy parameter, which would
probably solve your problem. I really think this syntax should be available.
> With that said, I was hoping that specifying it explicitly as a delegate
> would allow me to scope it. Apparently, that doesn't work :-(
>
I guess you mean you can't scope the delegates? I'm surprised if that
doesn't work.
-Steve
More information about the Digitalmars-d
mailing list