Positioning Hans Oesterholt-Dijkema (15 Sep 2004 08:00 UTC)
Re: Positioning Alex Shinn (15 Sep 2004 08:39 UTC)
Re: Positioning Hans Oesterholt-Dijkema (15 Sep 2004 09:03 UTC)

Positioning Hans Oesterholt-Dijkema 15 Sep 2004 08:00 UTC

Dear SRFI-56 subscribers,

Would it not be a good idea to add

  file positioning primitives

to an implementation for binary i/o.

This would make 'record based' i/o possible, with
seeks to records, etc; and it would be a logical
next step, because binary i/o provides predefined
sizes for 'variable types'.

Bigloo has for instance:

(input-port-position port)
(output-port-position port)

Return the current position (a character number) in the port.

(set-input-port-position! port pos)
(set-output-port-position! port pos)

Set the current position (a character number) in the port.

Best regards,
--
Hans Oesterholt-Dijkema