[Felix-language] break continue changed

2011-01-12 Thread john skaller
In order to eliminate the macro processor, I have changed the syntax for break, continue, and redo: var i = 0; fred:whilst i < 10 do println i; ++i; if i> 6 do break fred; done done Basically, if you want to break, continue, or redo, you have to label your whilst, until, or forall loop as

[Felix-language] break continue

2007-09-04 Thread skaller
Just for fun I made this work: // #import proc A () { var x = 2; while (x>0) { println$ "Hix-"+x.str; for (int y = 4; y>0; --y) { if (y == 2) break; println$ "Hiy-"+y.str; continue; println "Never"; }; --x; }; } A; / N