[ENH] Proposal to remove method
Bijan Parsia
bparsia at email.unc.edu
Tue May 23 19:39:03 UTC 2000
HOLLER!
Did you both hear that? :)
Actually, I don't use that because I didn't know it was there. But it
looks very useful!
While I agree that streamlining is a good thing, I don't like losing
functionality. Particularly with String.
Cheers,
Bijan.
On Tue, 23 May 2000, Scott Wallace wrote:
> Andres,
>
> Actually, the two methods have different functions:
>
> "lineCorrespondingToIndex: n" gives you the line that contains the
> nth character of the string.
>
> whereas
>
> "lineNumber: n" gives you the nth line.
>
>
> For example,
>
> 'Fred
> the
> Bear' lineCorrespondingToIndex: 3 is 'Fred'
>
> whereas
>
> 'Fred
> the
> Bear' lineNumber: 3 is 'Bear'.
>
> Both functions had their uses in the early days of Squeak (both
> methods date back more than 4 years!) but, as you say, the former is
> no longer used, so I agree that it could and should be removed.
> Unless we hear someone holler.
>
> -- Scott
>
>
> At 12:57 PM -0700 5/23/00, Andres Valloud wrote:
> >Hi.
> >
> >There is String>>lineCorrespondingToIndex: and also there is
> >String>>lineNumber:.
> >
> >The comments in the methods suggest that the second is an improvement of
> >the first. The code looks much better in the second method, too.
> >
> >I found no senders of the first (just a reference in the method finder),
> >but I found senders of the second.
> >
> >I think the first method should be removed, and that the reference in
> >the method finder should be deleted. Shall we?
> >
> >Andres.
>
>
More information about the Squeak-dev
mailing list
|