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

Dar Scott dsc at swcp.com
Tue Jun 7 16:58:14 EDT 2016

> On Jun 7, 2016, at 1:37 PM, Dr. Hawkins <dochawk at gmail.com> wrote:
> Not being able to exit an
> outer loop (or, for that matter, to identify the companion beginning of a
> control structure, takes odd contortions for the first and several minutes
> at a time for the second.

I like the almost self-referential nature of this sentence.

Are you talking about editing?  Then I agree greatly.  I do get lost in structures.  I would appreciate the editor helping me.  I sometimes avoid deep nesting or many lines between structure boundaries by ending some error handling with a return or a throw.  Mostly, I try to find some meaning for the innermost loop and break that out as a separate function, especially something I can use elsewhere.  That lowers my need for block scoped variables, too.  (If I know the loop won't have a lot of iterations, I break down the content of the innermost into meaningful parts, too.)

So, I agree with editor help.  (Assuming I grok'd this right.)


More information about the Use-livecode mailing list