unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: bug-guile <bug-guile@gnu.org>
Subject: Re: port-filename documentation incorrect
Date: Tue, 08 Feb 2011 23:16:34 +0100	[thread overview]
Message-ID: <m3fwryf9z1.fsf@unquote.localdomain> (raw)
In-Reply-To: <m31v3jinm8.fsf@unquote.localdomain> (Andy Wingo's message of "Mon, 07 Feb 2011 21:41:19 +0100")

On Mon 07 Feb 2011 21:41, Andy Wingo <wingo@pobox.com> writes:

> Quoth the docs:
>
>  -- Scheme Procedure: port-filename port
>  -- C Function: scm_port_filename (port)
>      Return the filename associated with PORT.  This function returns
>      the strings "standard input", "standard output" and "standard
>      error" when called on the current input, output and error ports
>      respectively.

I think it does make sense to be able to name a port whatever you want,
but a port-filename should be either a string, indicating a path to a
file, or #f.  I propose to add another field to ports, "name", which
will default to #f.  The accessor `port-name' will use the filename
field if there is no explicit name.  Sockets and other things that want
to name their ports can use the set-port-name! procedure instead of
set-port-filename!.  Non-string names will be deprecated.

What do folks think?

Andy
-- 
http://wingolog.org/



  reply	other threads:[~2011-02-08 22:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-07 20:41 port-filename documentation incorrect Andy Wingo
2011-02-08 22:16 ` Andy Wingo [this message]
2011-02-28 19:55   ` Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3fwryf9z1.fsf@unquote.localdomain \
    --to=wingo@pobox.com \
    --cc=bug-guile@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).