local and do <commands> - what NOT to do
ambassador at fourthworld.com
Thu Feb 18 08:48:12 EST 2016
Kay C Lan wrote:
> 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.
Please consider logging those in the bug report so the dev team and/or
the community can address them.
Better still, if you have time you can update that Dictionary entry
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the Use-livecode