[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Parameters to require
- From: roberto@... (Roberto Ierusalimschy)
- Date: Fri, 31 Mar 2006 15:35:13 -0300
> 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