filestreams
Ned Konz
ned at bike-nomad.com
Wed Feb 21 20:32:50 UTC 2001
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.
What OS was that, BTW? (it wasn't Unix or Win32; perhaps 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.
--
Ned Konz
currently: Stanwood, WA
email: ned at bike-nomad.com
homepage: http://bike-nomad.com
More information about the Squeak-dev
mailing list
|