<div class="gmail_quote">On Wed, Aug 4, 2010 at 14:48, Steven Schveighoffer <span dir="ltr"><<a href="mailto:schveiguy@yahoo.com">schveiguy@yahoo.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 Wed, 04 Aug 2010 08:35:18 -0400, Richard Webb <<a href="mailto:webby@beardmouse.org.uk" target="_blank">webby@beardmouse.org.uk</a>> wrote:<br></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"> I haven't worked out whats causing the problem yet, though looking at the Phobos</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
code i'm not sure what the<br>
<br>
is(char[1 + Range.empty]))<br>
</blockquote>
<br></div>
Not sure either, but empty called on a string should be evaluatable at compile time. You should file a bug with a minimal example.<br></blockquote><div><br></div><div>Isn't that the trick used to test for infinite ranges? Infinite ranges are defined to have an 'enum bool empty = false' member. So, for an infinite range, 1+Range.empty is a compile-time expression that can be used as dimension for a static array.</div>
<div>Else, .empty is a function and I suppose the is() returns false.</div><div><br></div><div>Or something like that, anyway.</div><div><br></div><div><br></div><div>Philippe</div><div><br></div><div><br></div><div><br></div>
</div>