lua-users home
lua-l archive

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


2014-04-08 10:44 GMT+02:00 John Hind <john.hind@zen.co.uk>:

> One criticism I'd make of the current implementation is the way the 'C'
> libraries sometimes bypass the 'C' API and access Lua core internals
> directly. Whether the libraries are implemented in 'C' or Lua, I think it
> would be useful discipline to de-privilege them so they work through the
> API, extended as necessary.

The big 5.0 rewrite, when the names of the source files changed from
mathlib.c etc to lmathlib.c etc, was supposed to address that criticism.
AFAICS, none of the current libraries includes more than lua.h. lualib.h
and lauxlib.h; in other words, the C API.