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

Rob Withers slosher2 at home.com
Fri Jul 28 13:00:45 UTC 2000


Stephan Rudlof wrote:
> 
> 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.

It's horrible isn't it.  If I wasn't wasn't getting paid for it I'd
guess I'd have to get paid for it.  Sigh..and I could be doing RPG, I
guess. ;-)

Rob

> 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

-- 
--------------------------------------------------
Smalltalking by choice.  Isn't it nice to have one!





More information about the Squeak-dev mailing list