3 ms·
TCL have an interesting feature where user defined functions (or commands as it's called) can return TCL_RETURN, TCL_BREAK, or TCL_CONTINUE (in addition to TCL_
by andoma 7y ago
TCL have an interesting feature where user defined functions (or commands as it's called) can return TCL_RETURN, TCL_BREAK, or TCL_CONTINUE (in addition to TCL_OK and TCL_ERROR as you would expect) which directly affects control flow in the calling functions.
- nrclark 7y agoThat's some crazy shit right there, thanks for telling us about it! For those interested, here's a link that discusses it: https://www.tcl.tk/man/tcl8.6/TclCmd/return.htm https://www.tcl.tk/man/tcl8.6/TclCmd/return.htm
- lonelappde 7y agoWhich is a structured form of macros.