|
|
|
|
|
by CapsAdmin
743 days ago
|
|
> Kind of curious about this. I find packaging in Lua quite convenient. I make a file and return either a value or a table full of values and then I require that file in the dependent file that uses the package. While that aspect of it is nice, I think the way paths are handled by default can get annoying. Since everything has to be relative from the current directory, it's not very convenient to move files around or make a contained module that depend on its own module. If you're in charge of your own environment, sure, you can roll your own thing, but then you deviate from the norm and your code becomes less portable. There is also the LuaRocks package manager, which I believe is decent, but it's largely ignored by a big portion of the Lua community. |
|
What? Not in my experience. For instance, I have lpeg install ~/.luarocks/lib/lua/5.4 and LuaXML in /usr/local/share/lua/5.4 (just to name two modules I use). To use them, it's just
I'm confused as to what you mean.