dmd -c behaviour doesn't take account of packages.

Jonathan M Davis jmdavisProg at
Wed Feb 22 18:36:12 PST 2012

On Wednesday, February 22, 2012 16:28:45 H. S. Teoh wrote:
> On Wed, Feb 22, 2012 at 07:15:37PM -0500, Jonathan M Davis wrote:
> > Yuck. Yuck. Source should _always_ be separated from object files.
> > It's incredibly messy otherwise.
> Not really. You just have .d's with their corresponding .o's sitting
> side-by-side. It's a 1-to-1 correspondence. No mess.

I would consider the fact that they're in the same folder to be a mess in and 
of itself even without going into the other pros and cons, but there's no 
point in getting in an argument about it.

> But either way, the point is that the source tree structure *must* be
> reflected by the object files. Otherwise you break the 1-to-1
> correspondence and all sorts of nasty bugs show up.


- Jonathan M Davis

More information about the Digitalmars-d mailing list