Re: [racket-users] Doing file I/O from within a macro

2018-11-01 Thread Alex Knauth
> On Nov 1, 2018, at 8:32 PM, Robby Findler wrote: > > DrRacket disallows network and filesystem access during its online expansion. > Partly for security reasons and partly because it seems unlikely that the > code one writes that does that would be kill safe. You might be able to bike > th

Re: [racket-users] Doing file I/O from within a macro

2018-11-01 Thread George Neuner
On 11/1/2018 8:32 PM, Robby Findler wrote: DrRacket disallows network and filesystem access during its online expansion. Partly for security reasons and partly because it seems unlikely that the code one writes that does that would be kill safe. You might be able to bike the abstractions you

Re: [racket-users] Doing file I/O from within a macro

2018-11-01 Thread Robby Findler
DrRacket disallows network and filesystem access during its online expansion. Partly for security reasons and partly because it seems unlikely that the code one writes that does that would be kill safe. You might be able to bike the abstractions you news via the FFI but I guess it will be hard to g

Re: [racket-users] Doing file I/O from within a macro

2018-11-01 Thread George Neuner
Hi Alex, On 11/1/2018 6:57 PM, Alex Knauth wrote: Is it possible to create a temporary file, write to it, run a command on it, and the possibly delete the file from within a macro? Yes it is possible [see below].  What you need to do depends on whether you want to keep the file open in Rack

[racket-users] Doing file I/O from within a macro

2018-11-01 Thread Alex Knauth
Is it possible to create a temporary file, write to it, run a command on it, and the possibly delete the file from within a macro? Or is it possible to run a command (as in `system`) in a context where it pretends that some file exists? And, how does this play with DrRacket's background expansio