On Friday, 20 April 2018 at 23:13:58 UTC, Jonathan M Davis wrote:
Yes. That should work. e.g. this

import std.stdio;

void foo(lazy string l)
{
}

void main()
{
    foo({writeln("foo"); return "str";}());
}

compiles and runs just fine without printing anything, whereas you get a compilation error if you don't have the parens after the closing brace.

Ok cool. I've updated the PR since basically, I agree with your points about it being confusing to cater for the special case.


Reply via email to