D and file names

Vladimir Panteleev vladimir at thecybershadow.net
Fri Mar 25 04:10:29 PDT 2011


On Fri, 25 Mar 2011 13:05:39 +0200, Russel Winder <russel at russel.org.uk>  
wrote:

> It appears that DMD barfs on files with - in the file name.  Why?

Do you mean, why doesn't DMD try to work around the problem automatically  
(e.g. by substituting/removing invalid characters in the module  
identifier)? The error message answers your verbatim question.

"test-file-name.d: Error: module test-file-name has non-identifier  
characters in filename, use module declaration instead"

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list