October 16, 2002 for-do-while | ||||
---|---|---|---|---|
| ||||
I sow D specification about for-do-while. It's strange. Why is loop label is outside the loop? If I write labelname: op1(); while(...) { ...; break labelname; } I think statements like this should be in a form: do(labelname) { ... } while(cond); for(init;test;incr;labelname) { ... } while(cond;labelname) { ... } switch(expr) { ...; break labelname; } +classic form expresion like: break lablelname; continue labelname; Is look pretty, but stament goto must exist. -------------------- |
Copyright © 1999-2021 by the D Language Foundation