How do I do this?

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 4 09:34:54 PDT 2017


dmd has a feature that a file passed directly to the compiler 
overrides file system for module search.
reallogger/impl/pluglogger.di
---
module mylogger.logger;
public import reallogger.impl.logger;
---

main.d
---
import mylogger.logger;
...stuff
---

dmd main.d - imports mylogger/logger.d
dmd main.d reallogger/impl/pluglogger.di - uses reallogger


More information about the Digitalmars-d mailing list