DSSS and Rebuild 0.64 released.

David Ferenczi raggae at ferenczi.net
Mon May 7 21:11:43 PDT 2007


> rebuild's default output file naming is -oq, which basically names
> things by their fully-qualified module name. So the module
> foo.io.translation becomes foo.io.translation.o and foo.text.translation
> becomes foo.text.translation becomes foo.text.translation.o. These file
> names are based on the module name, so if foo.io.translation lacks a
> module declaration, the file name will be translation.o. That's fine,
> unless foo.text.translation ALSO has no module declaration, in which
> case both will be named translation.o, and that's deadly.

Ok, I didn't know that -oq was default.
 
> This can be repaired somewhat by implying the module name from the
> directory, but I've found that problem to be surprisingly difficult to
> solve in reality.

This is what I didn't presume. Since I "name" a module always after the file
name, I didn't use the module declaration. It's surely not the best
practice, since it may be reasonable to name modules for example with a
prefix.
 
> Also, it's just good style to always include module declarations :)

I promise to keep it from now on. ;-)

Reagrds,
David








More information about the Digitalmars-d-announce mailing list