[squeak-dev] The Trunk: Multilingual-dtl.233.mcz
Bob Arning
arning315 at comcast.net
Mon Jan 22 13:07:54 UTC 2018
right - it's unfortunate that FileStream inherits from Stream because
everyone *knows* that <position> is what it says it is. Until it isn't.
On 1/22/18 7:44 AM, Levente Uzonyi wrote:
>>>
>>> can you add a comment to the method near the sending of position
>>> that explains? e.g. "send position so that this works with
>>> multibyte rncodings such as UTF8". Otherwise the temptation may
>>> remain to repeat the mistake.
>>
>> That's one reason why I always prefer accessors over direct inst-vars ;P
>
> The sole reason the accessor must be used in this case is the misuse
> of inheritance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180122/5ff09fbb/attachment.html>
More information about the Squeak-dev
mailing list
|