Re: [Scheme-reports] Binary and character ports (and an unrelated small issue) Jeronimo Pellegrini (09 May 2011 01:00 UTC)

Re: [Scheme-reports] Binary and character ports (and an unrelated small issue) Jeronimo Pellegrini 09 May 2011 00:59 UTC

On Sun, May 08, 2011 at 09:56:07PM -0300, Jeronimo Pellegrini wrote:
> Another queston related to binary and character ports: just as
> there are predicates to verify the case of a character, the
> exact kind of number (complex?, integer? etc), and wether
> a port is for input or output, shouldn't also be predicates
> to test wether a port is binary or character? Maybe
> character-port? and binary-port?

Oops. Sorry -- I meant "string ports" and "file ports".
The predicates character-port? and binary-port? are already
there!

(string-port? port)
(file-port? port)

J.

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