[Issue 16554] Wrong result of string constant

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 27 17:09:32 PDT 2016


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

apham <apz28 at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from apham <apz28 at hotmail.com> ---
The const is not consistent. run below codes

import std.stdio;

void main()
{
    writeln('-', " minus#: ", cast(int) '-');
    writeln("-", " len: ", "-".length);
    writeln("-1", " len: ", "-1".length);
    writeln("-12345", " len: ", "-12345".length);
    writeln("–2_147_483_648", " len: ", "–2_147_483_648".length);
}

--


More information about the Digitalmars-d-bugs mailing list