Hey, look at this code:
http://dpaste.dzfl.pl/ce4c5230ac18
If not working::
static ubyte[] u = new char[9999];
The error report is kinda ugly, isn't it?
Comment #1 by ketmar — 2015-03-11T20:52:54Z
wow! i like it! no, really, it's cute!
Comment #2 by ketmar — 2015-03-12T17:21:00Z
Created attachment 1491
trim output of long expressions
as far as i know, `Expression::toChars()` is not using in anything vital, only in diagnostic output. so i trimming it's result to arbitrary limit of 200 chars.
maybe it's better to fix array literal output, but this is easier, and it will additionaly limit output of other long expressions, which are unreadable anyway if they reaches that size.
Comment #3 by ketmar — 2015-03-12T17:22:26Z
p.s. this can ruing long utf-8 literals, though. not that i really care.
Comment #4 by ketmar — 2015-04-29T16:12:32Z
this also ruing things like `typeof(smth).stringof[$-2..$] == "[]"` for example. so it's unusable.