OrderedCollection>before:ifAbsent:

Jim Menard jimm at io.com
Tue Apr 26 14:40:08 UTC 2005


The comment for OrderedCollection>before:ifAbsent: states, in part, "Answer 
the result of evaluating the exceptionBlock if ... there are no elements 
before it."

The code, however, performs
	self errorFirstObject: target
if the object is the first element of the collection.

Which should be changed: the code or the comment?

Jim
-- 
Jim Menard, jimm at io.com, http://www.io.com/~jimm
"Brought to you again by the Department of Redundancy Department."
     -- Firesign Theatre




More information about the Squeak-dev mailing list