On Monday, March 30, 2015, Alexander D. Knauth <[email protected]> wrote:

> Well the point of using the configure-runtime was that it would run when
> it was the “main" program so that exact-decimals would work in the repl,
> but if this file was required as a library, it wouldn’t set the parameter
> for the other program.


I don't think it works as a library. I think you need to wrap read. Or are
you saying you are doing both?



>
> But should the tests be thought of as the “main” program when they are
> being run?
>
>
You can just call it in your tests I believe. (Assuming the above is right.)



>
> On Mar 30, 2015, at 10:08 PM, Robby Findler <[email protected]
> <javascript:;>> wrote:
>
> > I believe the intention of configure-runtime is that it runs only when
> > your file is run as the main program and not when your program is run
> > as a library (via require). So I don't think you can use that facility
> > to implement the exact-decimal language.
> >
> > Robby
> >
> > On Mon, Mar 30, 2015 at 8:56 PM, Alexander D. Knauth
> > <[email protected] <javascript:;>> wrote:
> >> For my exact-decimal meta-language, I had some tests that depend on the
> read-decimal-as-inexact parameter being set to #f by configure-runtime.
> >>
> >> It seems like raco test isn’t running that before running the tests.
> Is that intentional?
> >> (by the way the tests are not within a test submodule)
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected] <javascript:;>.
> >> For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected] <javascript:;>.
> > For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to