> > -- Case 1 (anchored by table outside constructor function) > local anchoring = {} > local function foo () > local x = ffi.new(whatever) > -- do some stuff to x > anchoring[#anchoring] = x > end > My poor proofreading strikes again. Clearly that should be #anchoring+1, but it doesn't change anything else about the comparison. Demetri