Typed variadic template syntax?

Timon Gehr timon.gehr at gmx.ch
Fri Jan 31 16:26:52 PST 2014


On 01/31/2014 03:32 AM, Idan Arye wrote:
>>>
>>
>> mixin({ foreach(...) { ... } }())
>
> Except it doesn't work inside classes and structs - it complains that
> "function literals cannot be class members". You have to define a named
> function and pollute the namespace.

This is the corresponding issue:
https://d.puremagic.com/issues/show_bug.cgi?id=7653


More information about the Digitalmars-d mailing list