Changing array key text

Mark Wieder ahsoftware at sonic.net
Wed Jun 26 01:01:51 EDT 2019


On 6/25/19 8:46 PM, Brian Milby via use-livecode wrote:
> Nothing gets put into limbo.  The pointer is deleted/removed from the array thus reducing the reference count held by the object containing the value.  In the above example, the only pointer left is the one held by tSubArray until a copy of the pointer is placed in the array as the new key which raises the reference count back to two.  The reference count never goes to 0 so garbage collection would not touch it.
> 
> I’m sure I don’t have the terminology 100% in line with the source, but I think the idea is close.

Doh! The hash is a collection of pointers.
Took a while to sink in, but it makes sense now.

-- 
  Mark Wieder
  ahsoftware at gmail.com




More information about the use-livecode mailing list