Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Uplevel 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: