Can anyone confirm this possible bug ?

Peter Haworth pete at lcsql.com
Tue Aug 28 13:18:48 EDT 2012


Hi Alex,
I get a runtime error on the trythis(1) statement - "can't find handler
near try this".  This is LC 5.5.1, OSX Lion
Pete
lcSQL Software <http://www.lcsql.com>



On Tue, Aug 28, 2012 at 9:35 AM, Alex Tweedly <alex at tweedly.net> wrote:

> Is this a bug, or a feature, or just something in my environment ?
>
> Create a new stack, add a button, and make the button script be
>
>
>> on mouseUp pMouseBtnNo
>>     put "we get here"
>>     trythis(1)
>>     put "but do we get to here"
>> end mouseUp
>>
>
> (Yes, I know it's wrong - that's the point :-)
>
> Compile this script - no error.
>
> In the card script, put
>
>>
>> function trythis p
>>     return 1
>> end trythis
>>
> and compile this, then click the button.
>
> It outputs the first line (i.e. "we get here") and then just stops.
> silently.
>
> If you correct it to
>     get trythis(1)
> then it all works OK.
>
> Does this happen for others, or just me ?
> Shouldn't there be some kind of error flagged when the button is clicked,
> to show that a function has been called as though it were a handler ?  Or
> at least to warn that execution has just stopped in mid-flight ?
>
> Thanks
> -- 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<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



More information about the use-livecode mailing list