The dictionary claims that it is legal syntax (in 7 and 8). The example therein shows that handler locals can be declared and assigned values at runtime using a do in a loop. I would never have thought of that! .Jerry
> On Jun 8, 2016, at 7:27 PM, Mark Wieder <mwie...@ahsoftware.net> wrote: > > On 06/08/2016 05:50 PM, Dar Scott wrote: >> I'm curious about this, too. >> >> I often assign values for script variables. > > I'm used to doing that as well in most other environments. > Maybe it's just my faulty memory, but I think I remember discussions here > about not relying on assigning values to local or script variables at > declaration time because it's not an officially supported syntax. > > I've stayed away from doing it for that reason, and I'd be quite happy to be > wrong about this. Possibly the engine/parser now supports this syntax, > possibly I'm misremembering or thinking of a different discussion of a > different topic... > > -- > Mark Wieder > ahsoftw...@gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode