lua-users home
lua-l archive

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


Am 23.08.2013 um 14:50 schrieb Thijs Schreijer <thijs@thijsschreijer.nl>:
> So create a loader function, insert it in 'package.loaders'. Whenever your loader function is called it can check the existence of a module by that name in your database.
> 
> Insert the loader function at position 1, or 2 if you always want to check your database and return what is there, or insert it last if you want local files to overrule what is in the database.

Thanks I have tested it with a short hard coded example, that's great

Phil