concatenating with the ampersand
Joe Lewis Wilkins
pepetoo at Cox.Net
Sun Mar 11 18:08:33 EDT 2007
Thanks, Stephen. I assumed he probably meant parenthesis, but under
most contexts you may use them interchangeably; certainly in
mathematical calculations. Doing so makes these even more readable as
well.
Joe
On Mar 11, 2007, at 2:59 PM, Stephen Barncard wrote:
> I would use the term 'parentheses' get shmengie(200+56)
>
> not 'brackets'.
>
> Yes, very useful for clarity, defining order of execution, and
> reducing confusion for the compiler.
>
> Brackets [ ] are used to define array keys shmengie[item1]
>
> array keys cannot be evaluated inside the brackets
>
> shmengie[200+2] won't work correctly
>
> this might work but be hard to trace.
>
>
> shmengie[(200+2)] but I haven't tested.
>
> sqb
>
>
>> Hi Joe,
>>
>> Mind reading would be a useful skill, but it is my own mind that
>> is causing most of the problems (sigh).
>>
>> I did see an earlier comment about using brackets to delineate the
>> concatenated string and I have found that cuts most of my problems
>> in this area. Maybe because I have to be clearer about what I am
>> doing or maybe because the interpreter likes it better.
>> Cheers
>>
>> John T
>>
>>
>
>
> --
>
>
> stephen barncard
> s a n f r a n c i s c o
> - - - - - - - - - - - -
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list