DIP 57: static foreach
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Mar 10 07:13:30 PDT 2014
On 3/10/14, Kenji Hara <k.hara.pg at gmail.com> wrote:
> This is questionable sentence. On the foreach with tuple iteration, break
> and continue have no effect for the unrolling.
Whatever is implemented, we need to make sure the current code is
possible. in std.conv.to:
-----
switch(value)
{
foreach (I, member; NoDuplicates!(EnumMembers!S))
{
case member:
return to!T(enumRep!(immutable(T), S, I));
}
default:
}
-----
More information about the Digitalmars-d
mailing list