Would using a macro system such as <a href="http://metalua.luaforge.net/metalua-manual.html" rel="nofollow">http://metalua.luaforge.net/metalua-manual.html</a> be another way of doing this ?<p>This blog post reminded me of Lua's rather non-conformist older cousin Tcl. Shaping your own control structure is an idiomatic thing to do in Tcl thanks (or perhaps, but no thanks) to uplevel and upvar. I wish there was a standard goto (no pun intended) place exclusively reserved for creative hacks using those two. There probably is such a page on Tclers wiki, if not it very well deserves to be there.