[plt-scheme] seek/tell for ports...
At Wed, 17 Dec 2003 09:46:58 +0200, "Dor Kleiman" wrote:
> Is it possible to do that with a non-file port?
Seeting the position only works for (certain) file-stream ports and for
string ports.
> If it does, why is it called 'file-position'?
Historical reasons. It should have been called `port-position'.
> If it doesn't, why not?
The underlying stream model doesn't support setting the position in
general. A pipe, for example, doesn't keep any content that has already
been read.
Matthew