lua-users home
lua-l archive

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

> Can I send others parameters to require() besides the module name?

No. This could be missleading, because when you call require it may
do nothing (if the module is already loaded); in that case would it
through away the extra parameters?

If you need to initialize your module in a non-fixed way, it is cleaner
to have an explicit function for the task.

-- Roberto