[plt-scheme] The filename of the file in the definition window

From: Jens Axel Soegaard (jensaxel at soegaard.net)
Date: Wed Dec 19 16:14:25 EST 2007

Robby Findler skrev:
> The port should have it:
> 
> Welcome to MzScheme v3.99.0.5 [3m], Copyright (c) 2004-2007 PLT Scheme Inc.
>> (call-with-input-file "/home/robby/tmp.ss" object-name)
> #<path:/home/robby/tmp.ss>
> 
> but why do you need it?

I get

   #<struct:object:...pper/stepper-tool.ss:618:8>

as the result of calling object-name with the port.
Makes sense it doesn't work, since the contents
of the definition window might be unsaved.

This leads to another question: How do I check whether the
contents of the definition windows has been saved?


The reason I need the name is that I want to pass the content
along to an external executable.



-- 
Jens Axel Søgaard


Posted on the users mailing list.