digitalmars.D.bugs - [Issue 455] New: DMD accepts illegal identifiers in module names if no ModuleDeclaration is used
- d-bugmail puremagic.com (17/17) Oct 24 2006 http://d.puremagic.com/issues/show_bug.cgi?id=455
- d-bugmail puremagic.com (19/19) Mar 28 2009 http://d.puremagic.com/issues/show_bug.cgi?id=455
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
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