[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: index tag method
- From: "John Belmonte" <jvb@...>
- Date: Wed, 14 Feb 2001 21:15:56 +0900
> 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.