lua-users home
lua-l archive

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



On Fri, Jun 28, 2013 at 12:09 AM, Patrick Donnelly <batrick@batbytes.com> wrote:
As some of you may know, I host luafaq.org for Steve Donovan.

Thanks, Patrick!  I'm also using fixed-ish line lengths so that diffs and patches are less ugly.

Thinking of doing a new revision, around the idea of 'modern Lua' - the subset that all versions accept.

Some things are definitely verboten, like 'arg' for varargs. It's an ugly 5.0-ism that will hurt anyone wishing to swap over to LuaJIT or Lua 5.2.

module(name) is not considered evil, but module(name,package.seeall) is.  (I'm assuming that Lua 5.2 is usually built in compatibility mode)

People are advised to avoid set/getfenv, and prefer a 5.2-compatible load (which LuaJIT supports and various modules such as pl.compat provide for 5.1).

Being both the chief writer and editor, there are some conflicts of interest, since I'm trying to be fair to people who don't use my libraries ;)

steve d.