LiveCode 10 - what are your thoughts on the new features?

Mark Waddingham mark at livecode.com
Thu Sep 9 11:53:03 EDT 2021


On 2021-09-09 16:47, Mark Wieder via use-livecode wrote:
> On 9/8/21 10:40 PM, Mark Waddingham via use-livecode wrote:
> 
>>    put [1, 2, 3] into tVar2
>> 
>> is equivalent to:
>> 
>>    put 1 into tVar2[1]
>>    put 2 into tVar2[2]
>>    put 3 into tVar2[3]
> 
> That's still ambiguous, though. Is
> 
> put [4, 5, 6] into tVar2
> 
> equivalent to
> 
>     put 4 into tVar2[1]
>     put 5 into tVar2[2]
>     put 6 into tVar2[3]
> 
> or
> 
>     put 4 into tVar2[4]
>     put 5 into tVar2[5]
>     put 6 into tVar2[6]

The former.

[ V1, ..., VN ] denotes a sequence which is an array mapping the key i 
to Vi.

{ "K1": V1, ..., "KN": VN } denotes a dictionary which is an array 
mapping Ki to Vi.

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




More information about the use-livecode mailing list