[plt-dev] order of module requires
It appears that modules are not run in the same order as they are required. This can give trouble when modules have side effects, for instance one module writing a file and the other one reading that file. As an example:
File module-sequence1.ss
#lang scheme
(printf "module 1~n")
File module-sequence2.ss
#lang scheme
(printf "module 2~n")
File module-sequence12.ss
#lang scheme
(require "module-sequence1.ss")
(require "module-sequence2.ss")
;Displays:
;module 2
;module 1
Is it possible to run modules in the order they are required?
(may be by inserting 'inverse' somewhere in #%module-begin?)
Jos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20090422/f1060de6/attachment.html>