[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4.2 New assorted suggestions (Part II)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 21 Nov 2020 13:11:50 -0300
> anyway, usage of lua_pushlstring instead of lua_pushstring is much better.
It depends on what you call "better". For literal strings,
lua_pushstring is both simpler to use and faster. For mutable
strings, lua_pushstring may not be even correct. (The string
might contain embedded zeros.)
-- Roberto