At 15:05 Uhr -0500 02.01.2003, Craig Taylor wrote:
I do that all the time with timeout objects, without any problem (at least as far as I am aware of...)Happy New Year to All,Very quick question. Will I run into any potential mishaps if I have a timeout object forget itself? i.e. timeout("thisTimer").new(1000, #handlerToCall, me) on handlerToCall doThisStuff timeout("thisTimer").forget() end Thought I remembered something with regard, but sadly not with any clarity :-)
maybe you mix it up with miaws, which shouldn't 'forget theirselves' (the forget command in an event chain inited by the miaw itself).
in case of the miaw, that's because the handler, which caused the forget() command will be left 'open' since it doesn't exist anymore to be 'cleaned up' -> execute the 'end' of the handler.
there's no reason for a problem in case of a timeout object, though.
--
|||
a�ex
--
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
