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

From: Benderjg2 at aol.com (Benderjg2 at aol.com)
Date: Tue Oct 8 13:02:44 EDT 2002

Unfortunately, I think the answer, right now, for both questions 
is a custom version of open-input-file, returning a custom port, 
which allows to introspect on the file name.

Perhaps other would have a better idea.


In a message dated Tue, 8 Oct 2002 01:18:01 +0400 (MSD), lisovsky at acm.org writes:

> 1. Is it possible to turn lines-counting on for _every_ input port in a
> program (short of redefinition of 'open-input-file' and friends) ?
> I believe that the overhead will be low, in other Schemes 
> input ports are 
> always opened in this mode...
> 2. Any ideas about file name?

Posted on the users mailing list.