<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 10/02/2011 03:52 PM, Robert Clipsham wrote:
<blockquote
cite="mid:CAJ9_+XJZMUQNfEQ=6_tTPvCVK11CnbM4QceKHn9GMxQKTC5FXg@mail.gmail.com"
type="cite">How about:
<div><br>
</div>
<div>--</div>
<div>pure static this()</div>
<div>{</div>
<div> // Code</div>
<div>}</div>
<div>--</div>
<div><br>
</div>
</blockquote>
<br>
pragma(depends, module1, modle2) static this() {<br>
}<br>
<br>
That would imply that whatever is imported, this one only depends on
the listed modules.<br>
<br>
<blockquote
cite="mid:CAJ9_+XJZMUQNfEQ=6_tTPvCVK11CnbM4QceKHn9GMxQKTC5FXg@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
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 class="h5">_______________________________________________<br>
phobos mailing list<br>
<a moz-do-not-send="true"
href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true" href="http://octarineparrot.com/">http://octarineparrot.com/</a><br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
phobos mailing list
<a class="moz-txt-link-abbreviated" href="mailto:phobos@puremagic.com">phobos@puremagic.com</a>
<a class="moz-txt-link-freetext" href="http://lists.puremagic.com/mailman/listinfo/phobos">http://lists.puremagic.com/mailman/listinfo/phobos</a></pre>
</blockquote>
<br>
</body>
</html>