How to make commented code to compile?

Zhuo Nengwen soarowl at yeah.net
Mon Oct 9 15:15:48 UTC 2017


On Monday, 9 October 2017 at 14:54:33 UTC, Adam D. Ruppe wrote:
>>     //test(cast(ushort) 1, (m, c) => { writeln(m); });
>
> That's a function that returns a function.
>
> Perhaps you meant to just remove the => and be left with a 
> multi-line function.

I simplified the test codes. I want write mode codes in closure, 
such as:

test(cast(ushort) 1, (m, c) => {
   writeln(m);
   writeln(m);
});


More information about the Digitalmars-d-learn mailing list