[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: return value of require?
- From: Miles Bader <miles@...>
- Date: Fri, 29 Feb 2008 03:22:43 +0900
Roberto Ierusalimschy <email@example.com> writes:
> PiL2 says this:
> From the user point of view, a module is a library that can be loaded
> through require and that defines one single global name containing
> a table. Everything that the module exports, such as functions and
> constants, it defines inside this table, which works as a namespace.
> A well-behaved module also arranges for require to return this table.
> Also, the 'module' function follows this behavior.
Thanks Roberto! I think that's sufficient to report a bug against swig
Friendless, adj. Having no favors to bestow. Destitute of fortune. Addicted to
utterance of truth and common sense.