Top level mutable data structures problem
john at repetae.net
Fri Oct 22 20:13:02 EDT 2004
On Thu, Oct 21, 2004 at 12:17:52PM -0700, David Brown wrote:
> On Wed, Oct 20, 2004 at 04:38:54PM +0100, Simon Peyton-Jones wrote:
> > * When a program is started, the module initialisation actions of its
> > modules run, in an order that respects module dependencies.
> What happens when there are cicular dependencies between modules. Perhaps
> the circular dependency is only because of sharing of types, and there is a
> valid order for the initialization. But, is it easy for the compiler to
> determine this?
I don't see a problem with letting the compiler run them in an arbitrary
order. I don't see much need for ordering things intermodule as long as
the actions are executed in order within each module.
John Meacham - ⑆repetae.net⑆john⑈
More information about the Glasgow-haskell-users