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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 7 08:39:39 UTC 2018


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

--- Comment #5 from anonymous4 <dfj1esp02 at sneakemail.com> ---
The example uses negative index to indicate offset from the beginning of the
string, not from the end. Pointers have no notion of the end of the string
anyway.

--


More information about the Digitalmars-d-bugs mailing list