[plt-scheme] Re: Is there a way to do this?
On Sep 14, narutocanada at gmail.com wrote:
> > Something like
> >
> > (uncaught-exception-handler (lambda (exn) (exit 1)))
> >
> > should do what you want. But Matthew's suggestion of writing a proper
> > script file and run it as `mzscheme script' is much better. One thing
> > is that you won't get it to print the prompts and the welcome banner
> > line.
>
> I need to pipe files for unbiased results for transformations.
> I like to clearly separate my own code, and the code I'm processing
> that's why I ask for it. I don't need to worry about prompts or
> banners, because any meaning preserving transformation should not
> alter the results for the same interpreter (mzscheme).
I don't know what you mean by that, but even in a case where you have
arbitrary files to evaluate you can use `load', or `eval'. (They're
not that great either, but starting a new process and feeding it code
on its input is really not a good solution.)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!