bug-guile
[Top][All Lists]
Advanced

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

Re: port?


From: Gary Houston
Subject: Re: port?
Date: 22 Oct 2000 12:56:50 -0000

> From: Han-Wen Nienhuys <address@hidden>
> Date: Sun, 22 Oct 2000 11:46:30 +0200
> 
> I don't understand. On page 6 R5RS mentions port?, suggesting it
> should be in.

Thanks for pointing this out, I guess you mean this (from the Info version:)

Disjointness of types
=====================

No object satisfies more than one of the following predicates:


     boolean?          pair?
     symbol?           number?
     char?             string?
     vector?           port?
     procedure?

These predicates define the types *boolean*, *pair*, *symbol*,
*number*, *char* (or *character*), *string*, *vector*, *port*, and
*procedure*.  The empty list is a special object of its own type; it
satisfies none of the above predicates.


But in the Ports section there's only:

 - procedure: input-port? OBJ
 - procedure: output-port? OBJ
     Returns #t if OBJ is an input port or output port respectively,
     otherwise returns #f.


I tried a few other interpreters and they don't define port? either,

R4RS only said:

  No object satisfies more than one of the following predicates:

     boolean?          pair?
     symbol?           number?
     char?             string?
     vector?           procedure?

I guess adding port? to Guile would be a good idea.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]