Skip to content

seek helppage. Possible clarification?

4 messages · A.J. Rossini, Brian Ripley

#
seek(zz,where=NewPosition)   returns the OldPosition of connection zz
(of the appropriate "pointer", i.e. read or write).  Currently, the
docs have:
One possible change would be to:
(since seek() seems to return "current/previous position", at least
for the variants I seem to use).

best,
-tony
#
It's usual to put values in the Value: section, and indeed it is described
there.  I am not sure why I would expect it in Details: too.

Looks like `positive' is out-of-date, though.
On 27 Nov 2001, A.J. Rossini wrote:

            

  
    
#
BR> It's usual to put values in the Value: section, and indeed it
    BR> is described there.  I am not sure why I would expect it in
    BR> Details: too.

Then the suggestion would be instead of (from "Value"):

     `seek' returns the current position, as a byte offset, if
     relevant, or `0' if not.

to:

     `seek' returns the current or previous position, as a byte offset, if
     relevant, or `0' if not.

(the confusion for me was whether current was before or after the function
call, which may change the position).

best,
-tony
#
On 27 Nov 2001, A.J. Rossini wrote:

            
(Sorry, I missed the point!)
I'd still say that was ambiguous, so I've changed it to

  \code{seek} returns the current position (before any move),
  as a byte offset, if relevant, or \code{0} if not.

Brian