[ENH] Proposal to drop contentsOfEntireFile
Lex Spoon
lex at cc.gatech.edu
Fri Jun 2 22:00:02 UTC 2000
Woohoo, someone cleaning things up! Don't forget about #upToEnd, whcih
is another method that does similar stuff. For consistency, the default
implementation of #contents could even be redefined as "^self reset
upToEnd".
-Lex
Andres Valloud <avalloud at exobox.com> wrote:
> Hi.
>
> Problem: there's contents in ReadWriteStream, but it doesn't work in
> FileStream because some variables are constantly nil in FileStream. But
> FileStream provides contentsOfEntireFile to solve the problem.
>
> What do I think about it: polymorphism is broken.
>
> Proposed solution: rename the method contentsOfEntireFile in FileStream
> to contents, and fix its 48 senders.
>
> I can do this in a while. But... do you think it's ok?
>
> Andres.
More information about the Squeak-dev
mailing list
|