constructing labels for static foreach inside switch inside foreach
ag0aep6g
anonymous at example.com
Wed Jul 8 13:38:32 UTC 2020
On 08.07.20 14:24, Steven Schveighoffer wrote:
> I solved it for now by extrapolating the inner code into a local
> template function. But this is definitely an awkward situation for
> static foreach.
FWIW, you can write the extra function like this:
static foreach (T; Types)
() {
innerloop: while (haveMoreData)
{
...
break innerloop;
...
}
} ();
More information about the Digitalmars-d-learn
mailing list