TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Adding Comefrom to LuaJIT

63 pointsby mr_tyzicover 9 years ago

5 comments

jwmerrillover 9 years ago
I recognize that this is just for fun, but can&#x27;t help linking this anyway:<p><a href="http:&#x2F;&#x2F;www.freelists.org&#x2F;post&#x2F;luajit&#x2F;Turning-Lua-into-C-was-alleviate-the-load-of-the-GC" rel="nofollow">http:&#x2F;&#x2F;www.freelists.org&#x2F;post&#x2F;luajit&#x2F;Turning-Lua-into-C-was-...</a>
felixgalloover 9 years ago
I&#x27;m disappointed that he didn&#x27;t implement the infinitely more useful &quot;PLEASE COMEFROM (LABEL) STEP (INTEGER)&quot;
sreanover 9 years ago
Would using a macro system such as <a href="http:&#x2F;&#x2F;metalua.luaforge.net&#x2F;metalua-manual.html" rel="nofollow">http:&#x2F;&#x2F;metalua.luaforge.net&#x2F;metalua-manual.html</a> be another way of doing this ?<p>This blog post reminded me of Lua&#x27;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.
评论 #10266047 未加载
Dylan16807over 9 years ago
&gt; A return statement is only valid at the end of a block, which means if the control flow introduces new blocks, they may not behave as such without if true return end wrapping.<p>do return end
sbahraover 9 years ago
Is there a &quot;Cotton Eye Joe&quot; reference here?
评论 #10265489 未加载