lua-users home
lua-l archive

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


on 9/17/04 9:49 AM, Roberto Ierusalimschy at roberto@inf.puc-rio.br wrote:

> * It is expected that a module "mod" will put all its stuff in a
> global table "mod". Moreover, it will arrange for the
> call <<require"mod">> to return that table, so that users can
> write
> 
>  local xl = require"mod"
> 
> and use local xl to access the module.

I'm looking more closely at the package proposal and how it relates to what
we've already built. Is there a reason to add modules to the global
namespace? The reason I ask is that it strikes me as risky with respect to
code accidentally depending on something else having loaded the module.

Mark