[Issue 5243] dmd -run potentially removes user files

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 3 03:51:25 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=5243


Leandro Lucarella <leandro.lucarella at sociomantic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


--- Comment #12 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2013-12-03 03:51:15 PST ---
(In reply to comment #11)
> Let's close it, overwriting normal compiler output files is an expected
> behavior IMO.

No, not really, not in the case where the compiler is behaving as a script
interpreter. What it I have a script called `something` and I have a D project
that has a `something.d` module that gets compiled to `something.o`, and I want
to use my `something` script in that project? If my `something.o` gets replaced
by another `something.o` that has nothing to do with my project, the results
will be really really ugly and hard to know what really happened.

I still don't know if DMD produces any .o or any other temporary files, maybe
it doesn't, but I think we need confirmation before closing this issue.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list