lua-users home
lua-l archive

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


On Thu, Jun 16, 2011 at 12:57, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> Are there any plans to add these
>> functions to the API, so that we can be nice and comfy knowing that
>> for every lua_to* there exists a corresponding lua_is*, luaL_check*
>> and luaL_opt*?
>
> No. As the manual says, "the auxiliary library provides higher-level
> functions for some common tasks."  It does not aim completeness.
>
>
>> These can be resolved by defining them myself as preprocessor macros
>> (#define lua_isinteger lua_isnumber), but that seems like a hack
>> that's likely to interfere with something (if other libraries do
>> similar or Lua ever adds these).
>
> I do not see why they seem like a hack. It looks like programming to me :)
> Just try to use prefixes other than "lua_" and "luaL_".
>
> -- Roberto
>
>

True, I could use my own prefix to implement a "complete" set. I'd
only thought of adding to the existing sets. Thanks for the tip. :)

-- 
Sent from my toaster.