|
> the better way is having the hook which should be called from > VM/libraries when they need the file be loaded I guess. If I understand you correctly, that's the idea of package.preload: http://www.lua.org/manual/5.1/manual.html#pdf-package.preload --lhf