[Seaside-dev] Re: [Seaside Issues] Issue 555 in seaside:
SequenceableCollection>>#beginsWith: and #endsWith: are non-portable
Paolo Bonzini
bonzini at gnu.org
Sun Mar 7 17:02:49 UTC 2010
On 03/07/2010 04:44 PM, Julian Fitzell wrote:
> Sure, they're different, but since #indexOfSubCollection: is supposed
> to return the index of the first match, it's a bit weird for
> #beginsWith: to return true in any case where #indexOfSubCollection:
> does not return 1, no? Similarly, if #endsWith: returns true, you'd
> expect #indexOfSubCollection: to return 1< index<
> (length(collection)-length(subcollection)).
>
> So while I'm not saying #beginsWith: '' should not return true, I am
> saying that if it*should* return true, then there is a bug in the
> ANSI definition of #indexOfSubCollection:. And one way or another, I'm
> pretty sure the two implementations should align.
Makes sense, yeah. Guess I'll fix GST.
Paolo
More information about the seaside-dev
mailing list