On 29/04/2016 17:49, Claude wrote:
"supplying import module paths manually" ? How would that even work?
Suppose you want to compile main.d separately. You'd need to supply to
the compiler an option for each module with non-standard path, such as
`xxx.foo=foo.d;xxx.bar=bar.d`, etc..
No, the command-line option could be much simpler:
dmd -c myimplementation.d -Imyinterface.d
Just like when you compile and link both myimplementation.d and
myinterface.d (and it resolves import locations on its own). Except you
tell the compiler it just needs to look for declarations within
myinterface.d, and not actually compiling it.
Fair enough, that does make it a simpler option. I still don't like it
though.
--
Bruno Medeiros
https://twitter.com/brunodomedeiros