[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4.2 New assorted suggestions (Part II)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 23 Nov 2020 08:59:33 -0300
> 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.
- References:
- Lua 5.4.2 New assorted suggestions (Part II), Ranier Vilela
- Re: Lua 5.4.2 New assorted suggestions (Part II), Dibyendu Majumdar
- Re: Lua 5.4.2 New assorted suggestions (Part II), Ranier Vilela
- Re: Lua 5.4.2 New assorted suggestions (Part II), Dibyendu Majumdar
- Re: Lua 5.4.2 New assorted suggestions (Part II), Ranier Vilela
- Re: Lua 5.4.2 New assorted suggestions (Part II), Chris Smith
- Re: Lua 5.4.2 New assorted suggestions (Part II), Luiz Henrique de Figueiredo
- Re: Lua 5.4.2 New assorted suggestions (Part II), eugeny gladkih
- Re: Lua 5.4.2 New assorted suggestions (Part II), Roberto Ierusalimschy
- Re: Lua 5.4.2 New assorted suggestions (Part II), Ranier Vilela
- Re: Lua 5.4.2 New assorted suggestions (Part II), Luiz Henrique de Figueiredo
- Re: Lua 5.4.2 New assorted suggestions (Part II), Ranier Vilela
- Re: Lua 5.4.2 New assorted suggestions (Part II), Kyle Evans
- Re: Lua 5.4.2 New assorted suggestions (Part II), Ranier Vilela
- Re: Lua 5.4.2 New assorted suggestions (Part II), Kyle Evans
- Re: Lua 5.4.2 New assorted suggestions (Part II), Ranier Vilela