Understanding 'the defaultStack'

Monte Goulding monte at appisle.net
Sat Oct 8 19:26:11 EDT 2016


Hi Folks

I just had a look into the source and here’s the but in the go command causing confusion:

    if (t_stack->getmode() == WM_TOP_LEVEL || t_stack->getmode() == WM_TOP_LEVEL_LOCKED)
        MCdefaultstackptr = t_stack;

What this means is that unless the mode of the stack is topLevel (1) or topLevel + cantModify (2) the defaultStack is not changed by the go command.

Cheers

Monte



More information about the use-livecode mailing list