[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: wish for 5.2
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 13 Feb 2009 09:44:23 -0200
> My wish for userdata environments is for them to allow nil as the
> environment. That way I could easily tell whether or not I had set a
> custom environment on a userdata.
But it would require an extra test for nil before any indexing. Can't
you use a fixed table with (or without) a distinguishing field that
you can inspect when you need to know whether there is a custom
environment?
-- Roberto