Small fix (was Re: [ENH][Unix][VM][2.8][2.9alpha?] stream-based translation)

Stephan Rudlof sr at evolgo.de
Fri Jul 28 12:15:36 UTC 2000


Rob Withers wrote:
> 
> Stephan,
> 
> Sorry it has taken me so long to post.  I've been hacking!
> 
> Stephan Rudlof wrote:
> > Rob Withers wrote:
> > >
> > > Hi.  There was a problem with the automatic overwriting of a file when
> > > using FileDirectory>>#fileNamed:.  It turns out that when you have an
> > > *existing* file, you will write from the beginning, but it doesn't
> > > eliminate the other contents.  The result is that when you write less
> > > than the previous contents then close it, the file hasn't been
> > > truncated.
> >
> > What about using #newFileNamed?
> 
> This puts up a question dialog, asking if you want to overwrite the
> file.  Since there are many files being written, I wanted to ask once,
> then write all of the files.

I understand. Haven't thought deep enough here ;-(

IMHO this is a further example of a lack of good 
- file[Stream] handling code, and
- separation of GUI from core code.

Stephan

> 
> Rob

-- 
Stephan Rudlof (sr at evolgo.de)
   "Genius doesn't work on an assembly line basis.
    You can't simply say, 'Today I will be brilliant.'"
    -- Kirk, "The Ultimate Computer", stardate 4731.3





More information about the Squeak-dev mailing list