[Issue 15041] Pointer slice with one negative index throws 'Range violation'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 6 19:26:58 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=15041

--- Comment #4 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to Basile B. from comment #3)
> The warning would only work for literals and CTFE-ed IntExp so i don't think
> this is very useful

It would be useful because negative indexes are used in some languages to
indicate an offset from the end of the string.

--


More information about the Digitalmars-d-bugs mailing list