[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file-position function

Chun-Yu Lee says:

> > (file-position in 11)
> *** - cannot position #<STRING-CHAR-FILE-STREAM #"FOO"> beyond EOF

> Is there something wrong with the usage? I'd like that it returns the nil
> when the file position cannot be set.

CLtL2 (p. 656) and dpANS ( specify that
  "If the integer is too large or otherwise inappropriate,
   an error is signaled."

A value of NIL would be returned if the new position were valid but could
not become the file's position for some other reason.

                    Bruno Haible