local and do <commands> - what NOT to do

Kay C Lan lan.kc.macmail at gmail.com
Thu Feb 18 07:15:44 EST 2016

On Thu, Feb 18, 2016 at 7:52 PM, Mark Waddingham <mark at livecode.com> wrote:

>> Okay so this kind of code pattern originates from HyperCard which did not
> have arrays.
> Upshot: There's no reason to use 'local' in do if you are initializing the
> variable at that point. Indeed, one could argue that it is better to do:
>   do "put empty into tVar_" & x

Which all goes to reinforce my initial feeling; the Example given in the
Dictionary for <local> is negative learning. Noted added to my ever
increasing pile of Dictionary improvements.

More information about the use-livecode mailing list