[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: require and function names
- From: Stefan Brantschen <sbr@...>
- Date: Sat, 21 Jul 2007 21:34:21 +0200
On 21 Jul 2007, at 21:11, Merick wrote:
When loading binary modules, how does require() handle functions
with the same name? For instance, if you've already loaded one
module with a function named "screen", what would happen if you
tried to load another module that has a different function that's
also named "screen"?
As (by default) module foo is loaded into table foo, foo.screen will
be different from bar.screen.
<http://www.lua.org/manual/5.1/manual.html#5.3>
With regards
-- Stefan