[ANSI-Smalltalk] Smalltalk file streams

Paolo Bonzini bonzini at gnu.org
Mon Oct 20 23:53:54 BST 2008


Richard O'Keefe wrote:
> 
> On 20 Oct 2008, at 3:00 pm, Paolo Bonzini wrote:
> 
>>
>>> The standard needs to say something about this.
>>> If there's a section of the ANSI standard that talks about
>>> it, I've been unable to find it.
>>>
>>> Note that running out of memory is an implementation limit.
>>
>> Sure -- but running out of memory because you try to slurp the entire
>> contents of a file in memory without first checking its size, is a
>> programmer bug.
> 
> Sorry, wrong answer.
> It *would* be a programmer bug *if*
> (1) there were a way to find out how big the file is.

Yes, right.  That's part of the "filesystem" bullet at
http://smalltalk.gnu.org/wiki/smalltalk-standards-project-do-list

Paolo



More information about the ANSI-Smalltalk mailing list