Using "send...in <time>" wirh private commands?

Mark Wieder mwieder at ahsoftware.net
Sat Nov 7 15:28:38 EST 2015


On 11/07/2015 12:17 PM, Monte Goulding wrote:

> I had a look in the source and I don’t think it would be all that tricky to upgrade send so you can send private handlers from the same object. Send without a timer is easy as you already have a handle to the execution context which gives you a handle to the calling object. Send in time is a little tricker but not overly so. It just involves adding the calling object in a number of calls and also to the internal pending messages data structure. I guess we could add an extra caller object reference item to the pendingMessages as a result. The engine uses the same mechanism to send a lot of messages so you would need to handle the caller being nil meaning an engine message.

Very cool.
What file were you looking at? I'd love the be able to use private 
callbacks for socket commands.

-- 
  Mark Wieder
  ahsoftware at gmail.com




More information about the use-livecode mailing list