

On Fri, 08 Nov 2002 Fergus Henderson wrote :
>On 08-Nov-2002, Noel  Pinto <cool4life@rediffmail.com> wrote:
> > I need some clarifications on the usage of io__seek_binary.
> >
> > The pred is written as
> > :- pred io__seek_binary(io__binary_stream, io__whence, int,
> > io__state, io__state).
> >
> > io__whence is defined as
> > :- type io__whence --->
> >     set
> > ;   cur
> > ;   end
>
>You omitted the comments:
>
>         % io__whence denotes the base for a seek operation.
>         %       set     - seek relative to the start of the 
>file
>         %       cur     - seek relative to the current position 
>in the file
>         %       end     - seek relative to the end of the 
>file.
>
> 	:- pred io__seek_binary(io__binary_stream, io__whence, int,
> 				io__state, io__state).
> 	:- mode io__seek_binary(in, in, in, di, uo) is det.
> 	%       Seek to an offset relative to Whence (documented 
>above)
> 	%       on a specified binary stream. Attempting to seek on a
> 	%       pipe or tty results in implementation dependent 
>behaviour.

offset means counteract, compensate, counterbalance. What I 
understand is here it means a position in the stream. So, tell me 
what is the need for mentioning it as an offset??

Thanks and Regards,

Noel
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users@cs.mu.oz.au
administrative address: owner-mercury-users@cs.mu.oz.au
unsubscribe: Address: mercury-users-request@cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request@cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------

