The standard does *not* support - a removeAll: a - [was: Re: [BUG] Collection>>removeAll:]

Jarvis, Robert P. (Contingent) Jarvisb at timken.com
Fri Aug 30 16:37:18 UTC 2002


> -----Original Message-----
> From: Stephan Rudlof [mailto:sr at evolgo.de]
> Sent: Friday, August 30, 2002 10:47 AM
> To: ML Squeak
> Subject: The standard does *not* support - a removeAll: a - [was: Re:
> [BUG] Collection>>removeAll:]
> 
> 
> <snip!>
> - The intent of the standard seems to be to *forbid*
>     a removeAll: a
> .
> - At least I think this is a reasonable possible interpretation.


I disagree.  The standard says that after #removeAll: is executed, the
receiver of #removeAll: will not retain a reference to the parameter to
#removeAll: or, in other words, the receiver will not assign the parameter
to a non-temporary variable, or invoke a method which would result in said
parameter being assigned to a non-temporary variable.  My interpretation is
that it does not in any way prohibit

	a removeAll: a

I find it interesting that

	A) the return value from #removeAll: is unspecified,
	B) this discussion over relative trivia has gone on
	   for as long and with as much vehemence as it has, and
	C) I have been fool enough to have become involved in it.

:-}

Bob "...such was the wreck of the Hesperus in the midnight and the snow..."
Jarvis
Compuware @ Timken


**********************************************************************
This message and any attachments are intended for the 
individual or entity named above. If you are not the intended
recipient, please do not forward, copy, print, use or disclose this 
communication to others; also please notify the sender by 
replying to this message, and then delete it from your system. 

The Timken Company
**********************************************************************




More information about the Squeak-dev mailing list