Comment in ListModel<<keyAtValue:ifAbsent: is wrong

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Comment in ListModel<<keyAtValue:ifAbsent: is wrong

Christopher J. Demers
The comment in ListModel<<keyAtValue:ifAbsent: is wrong.  It says "N.B.
Equality is used for comparison of the values, unlike the
 superclass which uses identity. This is useful for lists of strings, etc.".
But the code defers to the searchPolicy which means the search policy could
be anything.

Chris


Reply | Threaded
Open this post in threaded view
|

Re: Comment in ListModel<<keyAtValue:ifAbsent: is wrong

Blair McGlashan
"Christopher J. Demers" <[hidden email]> wrote in
message news:9k4vst$2h77f$[hidden email]...
> The comment in ListModel<<keyAtValue:ifAbsent: is wrong.  It says "N.B.
> Equality is used for comparison of the values, unlike the
>  superclass which uses identity. This is useful for lists of strings,
etc.".
> But the code defers to the searchPolicy which means the search policy
could
> be anything.

Thanks Chris, defect no. 301. Will be fixed in the next release.

Regards

Blair