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

[Scheme-reports] IO operations and random access



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@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports