Bug 15374 – [internal] Nothing should import ddmd.mars
Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-11-22T13:15:16Z
Last change time
2018-10-01T22:20:46Z
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2015-11-22T13:15:16Z
These modules all import ddmd.mars.
ddmd.attrib
ddmd.cond
ddmd.dimport
ddmd.doc
ddmd.expression
ddmd.func
ddmd.hdrgen
Because these four functions are defined there:
readFile
writeFile
ensurePathToNameExists
escapePath
As ddmd.mars is the main function, nothing should be importing it. These helper/utility functions should either be moved elsewhere or put in it's own module.
This is a foreseeable blocker for switching to the new D frontend, as the main function is defined elsewhere in GDC, possibly LDC too?