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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to