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

Positioning

This page is part of the web mail archives of SRFI 56 from before July 7th, 2015. The new archives for SRFI 56 contain all messages, not just those from before July 7th, 2015.



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