"send" vs "dispatch"
Monte Goulding
monte at appisle.net
Tue Oct 9 01:37:18 EDT 2018
One of the main reasons I implemented send and call with params in the PR that has been mentioned is because it allows for referenced parameters. The following is an error:
on mouseUp
local tBar
send “foo tBar” to me
answer tBar
end mouseUp
on foo @rBar
put “Howdy" into rBar
end foo
While this works:
on mouseUp
local tBar
send “foo” to me with tBar
answer tBar // answers “Howdy"
end mouseUp
Of course you can’t use referenced params like this using send in time form.
More information about the use-livecode
mailing list