lua-users home
lua-l archive

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


"Paul Moore" <gustav@morpheus.demon.co.uk> wrote:
> > How about a tagmethod for boolean:
> >
> > ----------
> > None = {}
> >
> > noneTag = newtag()
> > settagmethod( noneTag, "boolean", function () return nil end)
> > settag(None, noneTag)
> > ----------
> 
> That's a nice technique. But the documentation doesn't mention a "boolean"
> event (either for 3.2 or 4.0 alpha). Is it newer than the alpha, or have I
> missed something? If there is a boolean method, is there also a string
> and/or number method?

There isn't one yet, I was proposing the addition of one.

Steve