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;
            ...
        }
    } ();

Reply via email to