lua-users home
lua-l archive

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


On Tue, Jan 17, 2012 at 9:01 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> However, you could call something like const char *lua_intern(L, const
>> char *str); which would intern your string and return the internal
>> pointer which you could then use for comparison.
>
> lua_tostring and lua_tolstring do exactly that.
>

Wow that's kinda mindblowing, not quite sure how I never noticed the
return value.

Cool.