On Sun, Jul 15, 2012 at 4:05 PM, Henning Pohl <[email protected]>wrote:
> 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. > > I'm not going to write something proprietary or closed source, but i > wonder if others can do so. > 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. -- Bye, Gor Gyolchanyan.
