[Issue 13758] RDMD renames directory if -ofNAME is the name of a directory
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Apr 30 22:42:24 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=13758
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
CC| |thecybershadow at gmail.com
--- Comment #2 from Vladimir Panteleev <thecybershadow at gmail.com> ---
https://github.com/D-Programming-Language/tools/pull/167
(In reply to Andrej Mitrovic from comment #0)
> I don't think RDMD should have the power to move things around like that. It
> should fail compilation if the output name would overwrite the directory,
> with optionally providing a special switch for when you really need this
> behavior (I don't see the point of the feature though..).
I added the renaming thing to work around Windows locking executable files that
are still running. I just hadn't thought that on Posix executable don't have an
extension, and writing the executable file might happen because the output file
is actually a directory.
--
More information about the Digitalmars-d-bugs
mailing list