Very clever indeed ;-) Thanks Stefan. --DD > -----Original Message----- > From: Stefan Bodewig [mailto:[EMAIL PROTECTED] > Sent: Monday, August 18, 2003 9:39 AM > To: [EMAIL PROTECTED] > Subject: Re: [OT] Build Time > > On Mon, 18 Aug 2003, Dominique Devienne <[EMAIL PROTECTED]> wrote: > > > Does that work with removing a listener as well? > > Should do. > > What the code does is to replace the listener list with a new one in > add/remove. The fire method will grab the list and either work on the > old list or on the new, but it will keep using the same list > throughout the method. > > The iterator will traverse a list that will never get modified in > either case. > > Stefan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]