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...
Afficher les réponses par date
Sorry about that... it is a bug I have not yet fixed and what you are seeing is a lame debugging trace!
Marc
On 8-Feb-06, at 2:20 PM, Bruno Deferrari wrote:
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...