<div class="gmail_quote">On Sun, Jul 15, 2012 at 4:05 PM, Henning Pohl <span dir="ltr"><<a href="mailto:henning@still-hidden.de" target="_blank">henning@still-hidden.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Most closed source C and C++ libraries provide headers and binaries. It seems to me that there is no way to do this in D, because the source files always have to be available to import their modules.<br>
<br>
I'm not going to write something proprietary or closed source, but i wonder if others can do so.<br>
</blockquote></div><br>It's quite possible. All you have to do is make a module, which doesn't contain any function bodies. The imported modules aren't compiled with the code. Most of the time it's easier to have a single module to have both the code to compile and symbols to import. In other cases they can be separated.<br clear="all">
<div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>