Feature request: First class labels
Luís Marques
luismarques+spam at gmail.com
Sun May 6 16:20:21 PDT 2007
BCS wrote:
> // no tests in loop.
> |void* l1 = complex_loop_invariant ? &&a : &&b;
> |void* l2 = complex_loop_invariant2 ? &&c : &&d;
> |
> |for(int i = 1; i<1000000; i++)
> |{
> | goto *l1
> | a: nothing();
> | goto l2:
> | b: that()
> | goto l2:
> | c: other();
> | break;
> | d: bat();
> |}
I hope people don't use that except in critical inner-loops or
encapsulated in some form :-)
--
Luís
More information about the Digitalmars-d
mailing list