3 ms·
Never used Tcl, nice overview. set a pu set b ts $a$b "Hello World" Seems pretty cool. uplevel is neat as well. The modifications = DSL approach seems i
by kriro 14y ago
Never used Tcl, nice overview.
set a pu
set b ts
$a$b "Hello World"
Seems pretty cool.
uplevel is neat as well. The modifications = DSL approach seems interesting, too.
- sea6ear 14y agoUplevel essentially allows macro like functionality to be implemented - although it is executed at runtime rather than compile time (you are executing in your caller's scope). However, it seems slightly evil for general use unless really needed. Playing with uplevel is really the first time I understood stack frames.