<p>It is bug 7038 and has been fixed in 2.059.<br>
<a href="http://d.puremagic.com/issues/show_bug.cgi?id=7038">http://d.puremagic.com/issues/show_bug.cgi?id=7038</a></p>
<p>Kenji Hara</p>
<div class="gmail_quote">2012/05/03 15:04 "Mehrdad" <<a href="mailto:wfunction@hotmail.com">wfunction@hotmail.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I believe all of these static assertions (and some variants thereof) should pass, due to the semantics of const, immutable, and shared.<br>
<br>
immutable struct Immutable { }<br>
const struct Const { }<br>
shared struct Shared { }<br>
static assert(is(Immutable == immutable(Immutable)));<br>
static assert(is(Immutable == const(Immutable)));<br>
static assert(is(Immutable == shared(Immutable)));<br>
static assert(is(Const == const(Const)));<br>
static assert(is(Const == shared(Const)));<br>
static assert(is(Shared == shared(Shared)));<br>
<br>
<br>
Do people agree?<br>
<br>
Also, what exactly is the difference between declaring a struct as immutable or as const? Aren't they unmodifiable either way? <br>
</blockquote></div>