I created a new bug in Bugzilla for the error message, since a specific case was resolved and it's really a completely different issue.<br><br><div class="gmail_quote">On Wed, Feb 8, 2012 at 2:48 PM, Don Clugston <span dir="ltr"><<a href="mailto:dclugston@googlemail.com">dclugston@googlemail.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 8 February 2012 18:57, Jonathan M Davis <<a href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.com</a>> wrote:<br>

> On Wednesday, February 08, 2012 18:15:30 Jacob Carlborg wrote:<br>
>> But if you put the "static if"-statement after all fields, shouldn't that be<br>
>> enough to have the full size of the struct. Of course it could be hard for<br>
>> the compiler to know that there are no fields after the "static<br>
>> if"-statement. Maybe the compiler could calculate the size incrementally.<br>
><br>
> That could cause big problems if the static if weren't after all of the member<br>
> variables. You could have multiple static ifs, each of which ended up with a<br>
> different size for the type, if there are member variables declared between<br>
> them. We _could_ make it give an error if you then added a member variable<br>
> after such a static if, but that's probably getting a bit complicated, since<br>
> more state is necessary. So, it's probably better to just disallow such static<br>
> ifs.<br>
<br>
</div>More specifically, it's not static if which is the problem, it's that<br>
.tupleof shouldn't be legal until all members have been declared.<br>
BTW if a static if body doesn't contain any declarations, there's not<br>
much it can contain that's meaningful!<br>
<br>
I think that based on the error message issue, the bug should stay<br>
open, but not as a regression.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
dmd-beta mailing list<br>
<a href="mailto:dmd-beta@puremagic.com">dmd-beta@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" target="_blank">http://lists.puremagic.com/mailman/listinfo/dmd-beta</a><br>
</div></div></blockquote></div><br>