lua-users home
lua-l archive

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


On Apr 18, 2002 at 03:09 -0000, kaishaku13 wrote:
> > It's essentially that sin is now called math.sin etc.
> 
> And how will this discipline be implemented? metatables?
> I assume this is the only way but want to make sure...

Just regular tables, I think -- no new features needed.  There's a Lua
Technical Note that describes the convention.  See
http://www.lua.org/notes/ltn007.html

The new 'globals' stuff provides some new ways to use a namespaced
library, but is not required.

-- 
Thatcher Ulrich <tu@tulrich.com>
http://tulrich.com