How can I hide implementation details when make a library
Daniel Kozak
kozzi11 at gmail.com
Tue Sep 25 04:58:00 PDT 2012
Yes, it works. Thanks a lot.
However I still dont get it, why dmd generates all sources
instead of just public symbols and functions declarations
On Tuesday, 25 September 2012 at 11:39:56 UTC, Jacob Carlborg
wrote:
> 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++.
More information about the Digitalmars-d-learn
mailing list