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

Reply via email to