[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
remove list member during a forEach: traversal?
From: |
Rick Riolo |
Subject: |
remove list member during a forEach: traversal? |
Date: |
Tue, 20 Feb 1996 14:54:05 -0500 (EST) |
Suppose I have a List alist, and suppose I want to
send messages to all its members:
[alist forEach: M(myMsg)];
My question is: can myMsg remove from alist a list member
to which it was sent (and still have the forEach carry on
to process the rest of the items in alist)?
I was thinking myMsg could have access to alist,
and perhaps it could include
[alist remove: self];
Will this work?
thanks!
- r
Rick Riolo address@hidden
Program for Study of Complex Systems (PSCS)
1061 Randall Lab University of Michigan
Ann Arbor MI 48109-1120
http://pscs.physics.lsa.umich.edu/rlr-home.html
- remove list member during a forEach: traversal?,
Rick Riolo <=