"LiveCode Infinity": lexically-scoped variables and bytecode blocks

Monte Goulding monte at appisle.net
Tue Jun 7 16:32:54 EDT 2016


What I think we could do which I personally feel would be a bug fix is if a variable is declared with an initial value then reassign it if we iterate over the local command again.

For example:

repeat 
    local tIndex = 1
    -- tIndex is always 1 here
    repeat
        add 1 to tIndex
    end repeat
end repeat

Sent from my iPhone

> On 8 Jun 2016, at 1:19 AM, Peter TB Brett <peter.brett at livecode.com> wrote:
> 
> Unfortunately, as I understand it we can't do this at the moment without breaking backwards compatibility. :-(





More information about the use-livecode mailing list