staticIndexOf is incredibly slow and memory intensive

Philippe Sigaud philippe.sigaud at gmail.com
Sun Aug 26 22:12:23 PDT 2012


On Mon, Aug 27, 2012 at 1:00 AM, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:

>
> test.d(17): Error: tuple index 4 exceeds 1
>
> I just noticed something though, if the order is swapped there's no error:
> void main()
> {
>     alias TypeTuple!(int) x;
>     static if (is(x[4] == int))
>     {
>     }
> }
>
> Bug maybe?

Certainly.


More information about the Digitalmars-d mailing list