lua-users home
lua-l archive

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


In the 4.1 alpha release, a few things bother me about the contents of the
LUA_PRIVATE ifdef in lua.h, called "useful definitions for Lua kernel and
libraries".

If something is said to be useful, that implies it's going to be used and so
should follow sane naming guidelines.  Everything should be prefixed with
"lua".

The "uchar" macro has nothing to do with Lua and belongs in a general
utility library.  Or is the Lua library expanding its mission...?

LUA_NUMBER_SCAN and LUA_NUMBER_FMT should be in the API as they are
generally useful to any program using the Lua interface.  Furthermore it
should be possible to override these definitions just as LUA_NUMBER.

The string-number conversion macros seem like candidates for addition to the
API.

-John