[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: userdata environment
- From: Mark Hamburg <mark@...>
- Date: Mon, 14 Sep 2009 22:35:21 -0700
On Sep 13, 2009, at 11:55 PM, Juris Kalnins wrote:
On Sat, 12 Sep 2009 21:30:30 +0300, Mark Hamburg <mark@grubmah.com>
wrote:
Personally, on Lightroom, I wished for the ability to store nil in
the userdata environment table.
That's harder. Currently it's a pointer to something that can be put
in GC
list, which excludes nil, bools, numbers and lightuserdata. Changing
that
would be a much bigger patch, and would increase size of userdata
header.
Nil doesn't require an expansion of the data structures since a NULL
pointer will do. It does require an expansion in the C code to deal
with that case but possibly not much more than the expansion needed to
handle types other than a table.
Mark