lua-users home
lua-l archive

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

Hi Reuben,

> I think that modules should involve new syntax, preferably just a new
> reserved word or two. Otherwise, I suspect they won't end up forcing
> themselves on the programmer enough to be used (is this a problem in
> While it should certainly remain possible to write non-modular Lua (for
> quick scripting), it should ideally work by making scripts a special case.

I think Python's way could be implemented with Lua's extensions (again with
improvements).  There is nothing special to do when writing modules.  The
globals of an imported file become the names within the module.