At 16:48 +0200 24/10/03, S�bastien Portebois wrote:

yes, but with one caveat : it looks like (I'm not sure about it, I should check it) that Director parse your list by incrementing the index. So that if you're doing a
call(#someHandler, lSomeList)
and the first objects in the beginning of the list modify the list (remove themsleves, add other items not at the end, ...) some objects won't receive the event.

With the simple solution:
call(#someHandler, lSomeList.duplicate())
Then objects can remove themselves without implications downstream.
And should any object in the list decide to add further objects to the list during the call, it is up to the creative object to decide whether it will pass the call to the newly inserted element immediately, or let it wait for "the next time around".
Of course, insertion will have to be in the correct original list, not the temporary list "call" is performed upon.
Jakob
[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!]

Reply via email to