New SqueakMap
Martin Wirblat
sql.mawi at t-link.de
Thu Apr 13 12:09:34 UTC 2006
Yoshiki Ohshima wrote:
>
>>That FileStream oldFileNamed: 'xyz.gif' assumes that xyz.gif is a text
>>file of UFT-8 format looks to me like the principle of the biggest
>>surprise ;)
>
>
> Opening a .gif file as a text file with *any* encoding (including
> non-conversion latin1) is logically wrong anyway... So this example
> may not tell us anything^^;
>
>
Yoshiki,
as Andreas noted you indeed seem to think that FileStream is or should
be a text file stream. Well, I think otherwise. There are myriads of
other structured data types than text and that means that raw byte
handling is different from all of them, because it is their base.
The name FileStream does not specify the contents of the file and thus
it is natural to think of it as the underlying and unspecified byte-handler.
Regards,
Martin
More information about the Squeak-dev
mailing list
|