TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Adding Comefrom to LuaJIT

63 点作者 mr_tyzic超过 9 年前

5 条评论

jwmerrill超过 9 年前
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>
felixgallo超过 9 年前
I&#x27;m disappointed that he didn&#x27;t implement the infinitely more useful &quot;PLEASE COMEFROM (LABEL) STEP (INTEGER)&quot;
srean超过 9 年前
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 未加载
Dylan16807超过 9 年前
&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
sbahra超过 9 年前
Is there a &quot;Cotton Eye Joe&quot; reference here?
评论 #10265489 未加载