lua-users home
lua-l archive

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

> I'd like to disable dynamic loading. Is this possible? Is
> deleting package.loadlib sufficient, or will that cause other issues?

Just do package = nil or require = nil and package.loadlib = nil.

If you only want to disable dynamic loading of C libraries then you may
keep require but delete the C loader in package.loaders:
	package.loaders[3] = nil
	package.loaders[4] = nil