|
|
||
|
On Jul 9, 2009, at 3:41 AM, David Manura wrote:
The mapping of module names to file paths is contained inside package.path and package.cpath. You can parse this information yourself--for example, see [1].
Hmmm... right... but that doesn't address cases where you have multiple modules in one file [1], or one module defined across multiple files [2][3], or multiple modules across multiple files aggregated into one file [4], or code which hasn't been loaded through 'require' [5], or ... pick your poison :)
[1] http://dev.alt.textdrive.com/browser/HTTP/URL.lua [2] http://dev.alt.textdrive.com/browser/HTTP/HTTP.lua [3] http://dev.alt.textdrive.com/browser/HTTP/HTTPExtra.lua [4] http://dev.alt.textdrive.com/browser/HTTP/Makefile [5] http://dev.alt.textdrive.com/browser/HTTP/Nanoki.lua