[gambit-list] Problem with u8vector ports

Bruno Deferrari utizoc at gmail.com
Wed Feb 8 14:20:35 EST 2006


I'm having some problems with u8vector ports, what happens is that
when there is no more data, instead of returning the EOF object, it
signals an error. Could this be a bug??

Here is an example of an interaction with gsi:

> (define u8vec (make-u8vector 10 97))
> u8vec
#u8(97 97 97 97 97 97 97 97 97 97)
> (call-with-input-u8vector u8vec (lambda (p) (read-all p read-char)))
(u8vector-rbuf-fill #<input-port #2 (u8vector)> 1 #t)
1> ,b
0  ##make-u8vector-port
1  ##char-rbuf-fill
2  ##read-char
3  ##read-all
4  call-with-input-u8vector
5  (interaction)             (console)@3:1           (call-with-input-u8vect...



More information about the Gambit-list mailing list