[plt-scheme] Why box here?
They are different things. A #f for a result means that there is no
filename set at all. A #t in the box means that the file is
"temporary" (ie, it is not the editor's real filename, but is being
used for some other purpose, like autosaving (I think that's an
example, but I'm not sure))
Robby
On 5/28/07, Grant Rettke <grettke at acm.org> wrote:
> There is a call to a text% editor get-filename:
>
> file:///C:/Program%20Files/PLT/doc/mred/mred-Z-H-677.html#node_tag_Temp_678
>
> You can pass in a box to get the result or you can just get the result
> from the function itself.
>
> In the DrScheme code calls to get-filename do both.
>
> collects\framework\private\frame.ss line 1148.
>
> In my code, I just use the result of the function.
>
> http://planet.plt-scheme.org/package-source/grettke/drsync.plt/2/1/drsync.ss
>
> Both seem to work fine.
>
> Why would you use either way or both do check the result?
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>