[racket] Order of executing required modules

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Apr 5 10:57:29 EDT 2011

I don't think that there is any particular reason for that specific
order, but there is a reason not to rely on any order. Specifically,
if you ever get one of those other files requiring each other, then
this will disrupt the order you see. For example, if both test-a.rkt
and test-z.rkt require test-l.rkt, then test-l.rkt will run before
either of them.


On Tue, Apr 5, 2011 at 9:49 AM, Jos Koot <jos.koot at telefonica.net> wrote:
> Hi
> Consider:
> File all-tetst.rkt
> #lang scheme
> (require "test-a.rkt")
> (require "test-b.rkt")
> (require "test-c.rkt")
> (require "test-d.rkt")
> ...
> (require "test-z.rkt")
> It appears that the tests are done in reverse order, id est from z to a in
> stead from a to z. Not really a problem for me, but it could be for modules
> that produce side effects (for example, one writing a file, the other one
> reading it) I wonder: is there a specific reason for the reversed
> invokations of the required modules? Or should I use another manner for
> running the tests in a specific order?
> Thanks, Jos
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.