[Issue 15277] New: unable to compile .d flies with numbers at the beginning of the name

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Nov 2 13:44:31 PST 2015


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

          Issue ID: 15277
           Summary: unable to compile .d flies with numbers at the
                    beginning of the name
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: steven_kladitis at yahoo.com

any .d file with a number in the beginning of the name will not compile with
dmd.

filename -> 1.d
or       -> 1a1aa1.d
-----
void main () {}

--------------------
if I rename with a leading letter dmd seems to like it.
I see
1.d: Error: module 1 has non-identifier characters in filename, use module
declaration instead.


this is dmd 2.069 rc2
I am looking to see if imports have this problem also.

--


More information about the Digitalmars-d-bugs mailing list