[snip]
It is design. With the conversion from string to non-string type,
std.conv.to runs parsing.
import std.conv;
void main()
{
auto arr = to!(ubyte[])("[1,2,3]");
// parse given string as a representation of ubyte[] value.
assert(arr == [1,2,3]);
}
And, the representation string of a value should have one or more
characters.
So empty string always throws exception.
Kenji Hara