How can I hide implementation details when make a library

Daniel Kozak kozzi11 at gmail.com
Tue Sep 25 04:39:41 PDT 2012


Hello,


I try to make for example some small library called libX. In 
C/C++ I can make libX.h(pp) and libX.c(xx), where libX.h will 
contain only interface for implementation from libX.c.

How can I achive this in D2?

When I trak dmd -o- -op -H libX.d it will generate libX.di, but 
this file always contains all source code from libX.d. It just 
strip comments.


More information about the Digitalmars-d-learn mailing list