Consider this small program:

import std.stdio;
import std.algorithm;

void main() {
    char[] a = ['a', 'b', 'c', 'd', 'e'];
    writeln(remove(a, 1, 3));
}


DMD compiles this fine. But GDC throws the following error:

error: no overload matches for remove
     writeln(remove(a, 1, 3));
                   ^

Though calling 'remove' with int[] works just fine.

I am new to D (but not to programming in general). Is it a GDC bug? If not, how to avoid this error?

Reply via email to