lua-users home
lua-l archive

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

2016-09-07 17:23 GMT+02:00 Paul Moore <>:

> There's a trade-off here. If it's easy to ignore a library (just don't
> use it) then it's OK for it to not cover all cases. But if it's hard
> to ignore it (it's built into the language or stdlib) then you have a
> greater responsibility to work correctly for all your users.

There's a neat way past that, used by texlua (the Lua interpreter
that ships with LuaTeX).

It has about a dozen extra libraries preloaded (including lfs and lpeg),
but not in _G, which looks like that of standard Lua. You must still
require them, but you don't need them installed elsewhere.