[Issue 17510] New: How could 509 be a byte value?

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 15 09:50:10 PDT 2017


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

          Issue ID: 17510
           Summary: How could 509 be a byte value?
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: qmnaidgolfrot at rcpt.at

In http://dlang.org/spec/lex.html:

>Byte value in octal.
>For example: \775 represents the character with the value 509.

509 cannot be byte as byte means (signed) 8-bit value...


Possibility_1:
"Unicode character in octal.
For example \775 represents the Unicode character which code is (decimally)
509."

Possibility_2:
"ubyte value in octal."
\775 is not allowed (gives an error). The maximum octal number allowed is 377
(decimally 255).

(More cases may be possible.)

--


More information about the Digitalmars-d-bugs mailing list