www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 455] New: DMD accepts illegal identifiers in module names if no ModuleDeclaration is used

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=455

           Summary: DMD accepts illegal identifiers in module names if no
                    ModuleDeclaration is used
           Product: D
           Version: 0.170
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


sample:

dmd 3/4/a.d


-- 
Oct 24 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=455


unknown simplemachines.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unknown simplemachines.org
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID





As far as I understand, DMD strips off path names (flattening all passed files
to the same package.)

From the documentation:

"The ModuleDeclaration sets the name of the module and what package it belongs
to. If absent, the module name is taken to be the same name (stripped of path
and extension) of the source file name."

Marking as invalid, with the assumption that someone will come and verify.  I
did see a case where DMD accepts an invalid filename, but it's a separate
issue.

-[Unknown]


-- 
Mar 28 2009