lua-users home
lua-l archive

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


On 04/20/2014 10:55 PM, Philipp Janda wrote:


I'm not sure how useful the proposal is in general, but I don't think that memory overhead is a concern here (for Lua 5.3 or on amd64 where you can't use the NaN trick anyway).



I didn't suppose it be _generally_ useful anyway. as stated in the original post, I thought it
might only be useful for my special usage. but I did find it an interesting idea: i.e. a userdata
type neither `too light' -- containing absolutely no extra information except the value itself,
nor 'too heavy' -- many extra information associated with each value instance and especially
involving the GC. what if we need one piecel extra information associated with the value?

and memory overhead was NOT my concern in the first place.



Philipp