[plt-scheme] port -> file/line/column ?

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Oct 9 13:25:39 EDT 2002

On Oct  9, Matthew Flatt wrote:
> I've just changed `object-name' to return a string for input
> ports. For a file input port, the string is the absolute file path.

Doesn't it sounds a bit asymmetric to have this only for input ports?
(I know that the C struct for output ports doesn't have a name, it
just doesn't sound right...)

BTW, I suppose someone would rely on these names, and "STDIN" might
lead to problems in this case...  Maybe it makes more sense to just
return #f in that case?

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.