|
On Friday, June 13, 2014 09:32:23 AM Philipp Janda wrote:At risk of drifting yet further off-topic, does anyone else wish
> 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
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>