On Mar 30, 2015, at 10:16 PM, Robby Findler <ro...@eecs.northwestern.edu> wrote:
> On Monday, March 30, 2015, Alexander D. Knauth <alexan...@knauth.org> 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? I’m saying that exact-decimal is a #lang, but if there were a library that had #lang exact-decimal as its language, then running a module that required that library wouldn’t set the read-decimal-as-inexact parameter for that other module, but for a test file that has #lang exact-decimal as its language, it would set the parameter when that test file is the “main program.” My question is, should raco test consider test files each their own “main program” for this purpose? > > On Mar 30, 2015, at 10:08 PM, Robby Findler <ro...@eecs.northwestern.edu> > 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 > > <alexan...@knauth.org> 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 racket-users+unsubscr...@googlegroups.com. > >> 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 racket-users+unsubscr...@googlegroups.com. > > 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 racket-users+unsubscr...@googlegroups.com. > 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 racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.