On Monday, 12 November 2012 at 21:08:43 UTC, simendsjo wrote:
It's not a bug.

string is an alias for immutable(char)[].
ubyte can be implicitly converted to char.
All your numbers are less than 256, so dmd is able to convert them to char.
If you try this, it fails.
string s = [256]; // 256 is > char.max

Ah right of course, thank you.

Reply via email to