[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
port-filename documentation incorrect
From: |
Andy Wingo |
Subject: |
port-filename documentation incorrect |
Date: |
Mon, 07 Feb 2011 21:41:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
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.
PORT must be open, `port-filename' cannot be used once the port is
closed.
But:
scheme@(guile-user)> (port-filename (current-input-port))
$1 = #f
And additionally, when connecting to a --listen socket:
> (port-filename (current-input-port))
$3 = socket
i.e. a symbol, not a string (!).
Andy
--
http://wingolog.org/
- port-filename documentation incorrect,
Andy Wingo <=