[Scheme-reports] IO operations and random access Paul Pereira (23 Mar 2013 01:45 UTC)
Re: [Scheme-reports] IO operations and random access John Cowan (23 Mar 2013 03:08 UTC)

[Scheme-reports] IO operations and random access Paul Pereira 23 Mar 2013 01:44 UTC

I think that the bytevector IO operations,

(read-bytevector! bytevector port start end)
(write-bytevector bytevector port start end)

should be supplemented in the small language by random access
functions, like set-port-position!. I think this may be planned for
the large language. Random access functions would allow for more
general maps between bytevectors and files. On the one hand, most
scheme IO functions generally assume that a port should be accessed
sequentially, but on the other hand, the the mere existence of
bytevectors and these IO operations begs for an equivalent to lseek.

Cheers,
Paul

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports