Writing closed source programs in D?

Shriramana Sharma samjnaa at gmail.com
Fri May 31 04:25:48 PDT 2013


Now I'm *not* going to write closed source programs in D [;-)], but am
curious -- in C++ we have header files which a developer can
confidently distribute along with the compiled libraries, and the
actual source of the libraries (the *.cpp files) remains with the
developer. In D, (obviously I'm a noob) it seems that module is the
unit of programming, so how does one provide the library user with an
API only without distributing the full D sources? Is it perhaps like
Python where you can compile stuff into a SO and provide appropriate
documentation so the user can just do import fooclosedlib and go
ahead?

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा


More information about the Digitalmars-d-learn mailing list