[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
- From: Tom N Harris <telliamed@...>
- Date: Fri, 13 Jun 2014 19:58:27 -0400
On Friday, June 13, 2014 09:32:23 AM Philipp Janda wrote:
> There is even a Lua API function[1] that makes this kind of thing easier ...
> > Ross.
>
> Philipp
>
> [1]: http://www.lua.org/manual/5.2/manual.html#luaL_checkoption
At risk of drifting yet further off-topic, does anyone else wish
luaL_checkoption would compare the strings in a more efficient way than strcmp
in a loop? Perhaps registering a table with the options as keys.
--
tom <telliamed@whoopdedo.org>