lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> The interface present in:
> https://www.lua.org/source/5.2/lua.h.html#lua_pushliteral
> It was ideal to add constant strings, I think.
> The code would be more readable.

Yes. Do use lua_pushliteral when dealing with literal strings.
It's good documentation and allows optimizations in the past and in the future.