https://github.com/dlang/dlang.org/issues/4307
https://forum.dlang.org/thread/csdnlhnlncjaxlvljxaa@forum.dlang.org
The spec as written while technically correct, doesnt give all the information on whats possible and when reading THE TOUR people were unable to apply it correctly to the 10 lines of code they just read
I suggest changing the spec to explicitly allow my hack, document the goto magic ints behavior to be best of whoever ability and being explicitly anti return 1;
To the best of my knowledge the compiler keeps a stack of lables and each opApply it --
a int, break lable finds that int and counts where it is on the stack, passing that into opApply. If its zero continue, if its not your suppose to pass it as is to the next guy. I believe this allows for 2d breaking in a single iteration by breaking via label or locally by decting 1 vs >2.
Needs some testing but Im pretty sure it just works; need some bolded text that say "do not write return 1;
in an opApply, its wrong" and some test cases.