As many thanks As possible to who crates D and UFCS feature

cym13 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 12 05:19:00 PDT 2017


On Friday, 12 May 2017 at 11:58:23 UTC, k-five wrote:
> On Friday, 12 May 2017 at 11:41:57 UTC, cym13 wrote:
>> [...]
> -------------------------------------------------------
>> [...]
> ---------------------------------------------------------
>
> Thanks and the correct syntax for each! is, passing a lambda. 
> So the:
>> [...]
> is an error:
> temp.d(15): Error: found 'item' when expecting ')' following 
> template argument list ...
>
> and should be:
> .each!( ( string item )  => writeln( item ) );

Ah, yeah, my bad, I should have try compiling it instead of 
answering directly ;)


More information about the Digitalmars-d-learn mailing list