Stack name conflicts resolved?

Monte Goulding monte at appisle.net
Sun Nov 6 00:38:41 EDT 2016


> On 6 Nov. 2016, at 1:31 pm, Mark Wieder <ahsoftware at sonic.net> wrote:
> 
> When new stacks are created in memory they are assigned the id 1002.
> Why?
> If there's a stack already in memory why not create the new stack with the next sequential id?
> Then the combination of id and filename should uniquely identify a stack.

Stack IDs aren’t really IDs at all they are just the max ID in a stack + 1. The first 1000 IDs are reserved. Card 1 is 1001 and therefore a new stack ID is 1002. Create a new object and the ID changes.

I guess we will discuss UUIDs next ;-)

Cheers

Monte


More information about the Use-livecode mailing list