lua-users home
lua-l archive

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


> > It was and still it is up to the developer to choose whether to create
> > globals. Now the "usual practice" seems so simple that it does not
> > deserve a helper function. Just write this:
> 
> I got the part that you are deprecating 'module' because it does not
> seem so useful anymore (a sign that the language itself got better
> ;-). I just got curious because you sounded like you were changing
> something about the way modules are loaded or should be written.

Depending on what you mean by "should", changing the "usual practice"
changes the way modules should be written. Now modules should not
create global variables (although they can do it).

-- Roberto