DIP 57: static foreach
Daniel N via Digitalmars-d
digitalmars-d at puremagic.com
Tue Nov 3 15:39:38 PST 2015
On Wednesday, 26 March 2014 at 22:14:44 UTC, Timon Gehr wrote:
> On 03/26/2014 01:33 PM, bearophile wrote:
>> Timon Geh:
>>
>>> http://wiki.dlang.org/DIP57/
>>>
>>> Thoughts?
>>
>> Is it good to support this syntax too?
>>
>> static foreach (enum i; 0 .. 10) {}
>>
>> Bye,
>> bearophile
>
> Yes, I think so.
>
> I'll try to finish the DIP this weekend.
template DIP(Args...)
{
static foreach(alias a ; Args)
{
}
}
Would supporting 'alias' conflate too much into one DIP?
More information about the Digitalmars-d
mailing list