lua-users home
lua-l archive

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


On Tue, Aug 18, 2009 at 5:22 AM, David Manura<dm.lua@math2.org> wrote:
>  has.x { is = 'rw', isa = 'number', default = 0 }
>

Yes, that's a good example of Lua being used creatively.

If there is a default, then usually 'isa' can be easily auto-detected;
there can be a default for 'is' as well.

Can then have the default notation:

has.x (0)