lua-users home
lua-l archive

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


On Sun, Apr 29, 2018 at 5:05 PM, Peter Cawley <lua@corsix.org> wrote:

> Hmm. So put the main functions in their own (tiny) dynamic libraries,

Yup, this is probably the cleanest method overall.

> delay-importing both Lua DLLs, and having a custom delay-import binding routine

First you would have to make the linker ignore duplicate externals, which is possible with the /force option. Then, these forced imports would need to be compatible with the /delayload option. The documentation on all of that is sparse, so this sounds like a lot of fun to play with, but probably not something to depend on.

Cheers,
V.