openlang
语言/嵌入式

Lua

简介

可嵌入的语言,以 C 库的形式提供,宿主可以注册函数,协程通过显式 yield 挂起。

文档

使用这门语言的成员

参与的讨论

3
  1. Assigning realloc back to the only pointer leaks on failure

    *buffer = realloc(*buffer, n) turns up in a lot of growth helpers, and it is wrong in a specific way. If the allocation fails…

    回复 8最近活动 clua
  2. Should a rejected tile move the palette forward?

    Creating a coroutine in Lua runs nothing yet. The host calls coroutine.resume, and only then does the generator run, up to th…

    回复 6最近活动 luaclojureswiftjavascript
  3. Should eval ever fall back to a host global?

    eval("rate + 1", env) with rate bound to 3 in env should mean 4. In compile-time mode, in runtime mode, every time. Flip a mu…

    回复 3最近活动 dcommon-lisplua

Logo 来源 ↗