Static Array with negative index results in a strange error-message

Dgame r.schuett.1987 at gmail.com
Mon Apr 23 13:32:00 UTC 2018


char[-1] c;

results in

Error: char[18446744073709551615LU] size 1 * 18446744073709551615 
exceeds 0x7fffffff size limit for static array

Should we fix that? A negative index should be IMO detected 
sooner/with a cleaner error message.


More information about the Digitalmars-d-learn mailing list