3 ms·
If you define your own, say, repeat-until loop, can you use the built-in break and continue commands? Could you define a break-with-value command for the built-
by adwn 6y ago
If you define your own, say, repeat-until loop, can you use the built-in break and continue commands? Could you define a break-with-value command for the built-in loops?
- dvdkhlng 6y agoUsing Tcl exceptions, I guess it would be pretty trivial to do that. Here [1] is an alternative do..while loop implementation provided by Tcllib, written in pure Tcl. [1] https://core.tcl-lang.org/tcllib/artifact/4f7e97706ff67a40 https://core.tcl-lang.org/tcllib/artifact/4f7e97706ff67a40