On 6 September 2013 00:56, H. S. Teoh <hst...@quickfur.ath.cx> wrote: > > @Iain: on that note, it looks like gdb thinks it's debugging C++, but D > doesn't have anything called 'operator[]'. It would be Really Nice if we > could somehow coax gdb to use opIndex instead (though it doesn't really > help in the case of dyn arrays 'cos they are built-in, and don't > actually have any opIndex to speak of). >
It's using the D front-end of the gdb. You'd know if gdb was trying to debug it as C++, as it has a different error. No symbol "operator[]" in current context. The other error is generic and you can reproduce it when debugging C. -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';