Summary: String literals doesn't already have a 0 appended to
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD

--- Comment #0 from Denis <> 2011-07-13 01:57:25 PDT 
According to
"String literals already have a 0 appended to them"
But if we create static arrays, they are exactly one after another: 

import std.stdio;
const s1 = "abcd", s2 = "EFG", s3 = "h";
void main() {
    writefln("%s %s %s\n%s %s %s",
        s1, *(s1.ptr + s1.length), cast(int) *(s1.ptr + s1.length),
        s2, *(s2.ptr + s2.length), cast(int) *(s2.ptr + s2.length)

abcd E 69
EFG h 104

If I missed something, I think this "something" should be mentioned in
documentation near citation above.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to