How about:<div><br></div><div>--</div><div>pure static this()</div><div>{</div><div> // Code</div><div>}</div><div>--</div><div><br></div><div>That is, pure at module level (doesn't depend on any other modules). Ordering can be done as before, we just need to add a clause in the docs to define pure module constructors as being run first given a "cyclic dependancy".</div>
<div><br><div class="gmail_quote">On 2 October 2011 23:42, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sunday, October 02, 2011 14:49:26 Walter Bright wrote:<br>
> On 10/1/2011 9:07 PM, Jonathan M Davis wrote:<br>
> > It would be really nice though to be<br>
> > able to just somehow mark one or both of the static constructors or<br>
> > modules to indicate that the initialization order doesn't matter (or to<br>
> > tell it which order to use if that's a better solution).<br>
><br>
> If such a feature were added, it would not be allowed in @safe code.<br>
<br>
</div>Well, it does kind of scream @trusted, since you're telling the compiler that<br>
what you're doing is safe instead of the compiler figuring it out on its own.<br>
<font color="#888888"><br>
- Jonathan M Davis<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Robert<br><a href="http://octarineparrot.com/">http://octarineparrot.com/</a><br>
</div>