Avoiding Global Variables - revUp 93
Terry Judd
tsj at unimelb.edu.au
Mon Jun 7 17:44:26 EDT 2010
On 8/06/10 3:51 AM, "Andre Garzia" <andre at andregarzia.com> wrote:
> In the cases where you have absolute control over the environment, then, you
> can use globals as a simple way of sharing data structures. Usually for
> these cases it is better to create a single global as an array and write to
> a single variable, this makes debugging easier. Better to have a single
> array with 50 entries than 50 globals.
A single global as an array supplemented by script locals works well for me.
Terry...
More information about the use-livecode
mailing list