[Issue 15453] New: Check for predefined version identifiers with a misspell

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Dec 15 20:45:25 PST 2015


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

          Issue ID: 15453
           Summary: Check for predefined version identifiers with a
                    misspell
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: jiki at red.email.ne.jp
        Depends on: 15452

This relates to a document issue.
https://issues.dlang.org/show_bug.cgi?id=15452

The compiler normally rejects same version identifiers as predefined.
Now, 2.069 added some predefined version identifiers in forms of CRuntime_xxx.

--------------------------------------
dmd.exe -version=CRuntime_Digitalmars
Error: version identifier 'CRuntime_Digitalmars' is reserved and cannot be set

dmd.exe -version=CRuntime_DigitalMars
(accepts-invalid)
--------------------------------------

Checker: CRuntime_Digitalmars ( small 'm' ).
Correct: CRuntime_DigitalMars

Though the document spec has same mistake as this,
many codes in Phobos and Druntime write **Mars actually. (which is working
well)
So I think this is to be fixed.

--


More information about the Digitalmars-d-bugs mailing list