How can I hide implementation details when make a library

Jacob Carlborg doob at me.com
Tue Sep 25 04:40:45 PDT 2012


On 2012-09-25 13:39, Daniel Kozak wrote:
> 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.

You can manually create .di files just as you would with C/C++.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list