Posted to tcl by rmax at Wed Jan 29 17:15:12 GMT 2025view raw
- proc do3 {body while condition} {
- uplevel 1 [subst -nocommands -nobackslashes {
- while {1} {
- $body
- if {!($condition)} {
- break
- }
- }
- }]
- }
- proc do4 {body while condition} {
- uplevel 1 $body
- uplevel 1 [list while $condition $body]
- }
Add a comment