filestreams
Bert Freudenberg
bert at isg.cs.uni-magdeburg.de
Wed Feb 21 20:47:07 UTC 2001
On Wed, 21 Feb 2001, Ned Konz wrote:
> On Wednesday 21 February 2001 11:01, Bert Freudenberg wrote:
>
> > Squeak file streams don't truncate the file, because some silly OS did
> > not provide that functionality.
>
> That's no reason to limit Squeak, is it? There will always be deficient OS
> platforms out there that have to have things emulated.
>
> If we passed an extra argument to the file open primitive that specified an
> open mode (truncate, open existing, etc.) then OS's that didn't provide
> low-level truncate capability on file opens could just do a delete of the
> existing file first if necessary.
Sounds good.
> What OS was that, BTW? (it wasn't Unix or Win32; perhaps Mac?)
Yes, Mac.
> > The same silly OS has no "flush" facility
> > either, so Squeak does not have this.
>
> There is an sqFileFlush() routine, and a primitive that calls it.
One of the real advances of 3.0 :)
-- Bert
More information about the Squeak-dev
mailing list
|