synonyms

Mike Bonner bonnmike at gmail.com
Thu Jun 29 12:17:03 EDT 2017


The thing about passing in as an array is.. its just a different form of
name value pairs, so it sidesteps the whole issue.



On Thu, Jun 29, 2017 at 10:11 AM, Alex Tweedly via use-livecode <
use-livecode at lists.runrev.com> wrote:

> No, what I meant was Richard's fourth method, described in
>
>
>> More with-the-grain would be this fourth option, passing in an array as
>> we see with some existing LC commands and functions, but that requires a
>> LOT more typing:
>>
>>   put "my chart" into tA["name"]
>>   put 100 into tA["width"]
>>   put "This is a chart" into tA["label"]
>>   DoSomething tA
>>
> As I said in the follow-up email (with changed subject line), I think that
> works perfectly, except it is rather verbose.
>
> -- Alex.
>
>
>
> On 29/06/2017 17:00, Bob Sneidar via use-livecode wrote:
>
>> I'm not sure what you mean by "pass by parameters" but I pass arrays by
>> parameters all the time. If you mean:
>>
>> function getSomeInfo @aMyArray
>>     -- do some stuff
>>     return true
>> end getSomeInfo
>>
>> That works fine.
>>
>> Bob S
>>
>>
>> On Jun 28, 2017, at 15:14 , Alex Tweedly via use-livecode <
>>> use-livecode at lists.runrev.com> wrote:
>>>
>>> He also mention a fourth method - using arrays - which he describes as
>>> "more with the grain" which is more appealing, since it solves all the
>>> above problems except the limitation on not using 'pass-by-reference'
>>> parameters. But I'll split that off to a separate response, with a changed
>>> subject/thread header.
>>>
>>> -- Alex.
>>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list