Creating Libraries Callable from C

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 26 21:44:35 PDT 2014


On Sunday, 27 April 2014 at 02:15:59 UTC, Ali Çehreli wrote:
> And if those functions are called from the library's own 
> initialization and deinitialization functions, the C program 
> need not know anything about the D runtime dependence:
>
> void mylib_init() {
>     rt_init(0);
>     // ... other initialization
> }
and what if user links two such libraries? ;-)


More information about the Digitalmars-d-learn mailing list