Arrays in LC [was: Re: [TAO] value() to obtain pointer functionality]

jbv at souslelogo.com jbv at souslelogo.com
Wed Aug 20 11:23:53 EDT 2014


I was thinking :
set the indexedarray of myArray to true
set the indexedarray of myArray to false

but then what happens when you switch that property from true
to false for the same array within a handler ?

Same question for "{}" notation : what happens when the same
handler contains these 2 successive lines :
  add 1 to myArray{10}
  add 1 to myArray[10]

Best
jbv

> How about using {} instead of []?
>
> Bob S
>
>
> On Aug 20, 2014, at 07:24 , Richard Gaskin
> <ambassador at fourthworld.com<mailto:ambassador at fourthworld.com>> wrote:
>
> So if we were to propose that LiveCode add indexed arrays, the first thing
> we'll want to do is come up with the syntax for specifying those when
> those are what we want, ideally allowing all other usage to continue using
> associative arrays as they have all these years.
>
> Suggestions on what that syntax should look like?
>





More information about the use-livecode mailing list