[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [SUGGESTION] Some lfs functionality in os library, please!
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 7 Sep 2016 17:32:38 +0200
2016-09-07 17:23 GMT+02:00 Paul Moore <p.f.moore@gmail.com>:
> 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.