[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Reference numbers always increment. Is this correct?
- From: "Tim Hunter" <Tim.Hunter@...>
- Date: Thu, 9 Aug 2007 14:06:13 -0400
I'm testing some code that creates and releases 500 references using
luaL_ref and luaL_unref. Even though the calls to luaL_ref and
luaL_unref are paired, I notice that each call to luaL_ref returns a
number that is 1 greater than the previous reference number. I assume
this behavior is expected but I though I'd post here to make sure. (I
was guessing that reference numbers would be reused.)
--
Perfection is achieved, not when there is nothing left to add, but when
there is nothing left to take away. -- Antoine de St. Exupery
Tim Hunter, Principal Systems Developer, Output Delivery and Reporting
Voice (919) 531-7686, Fax (919) 677-4444, www.sas.com