lua-users home
lua-l archive

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


> But this is what we are trying to avoid. Distributing lots of files is a
> big problem on Windows.

If what we want is to distribute several dll's in one, there is a quite
simple solution. Roll back to work 6 (that is, require "a.b" loads only
a.b) and simply add a fixed file in the end of cpath, like this:

  ...\?.dll;...\extramod.dll

Then we build the "extramod.dll" by putting there all modules we want,
each one with its own original luaopen_..., and that's it.

(Of course that only works for one single big file, but that seems to be
the ultimate goal after all, at least for the obsessive ;)

-- Roberto