A Programmer's Dilema: juggling with C, BetterC, D, Macros and Cross Compiling, etc.

Ali Çehreli acehreli at yahoo.com
Tue May 2 08:56:55 UTC 2023


On 5/1/23 03:23, Mike Parker wrote:

 > If you're referring to `rt_init` and `rt_term` are the `extern(C)`
 > functions in `core.runtime`. It's not necessary to call those from C. A
 > D library with a C interface can provide an `extern(C)` initialization
 > function that internally calls `Runtime.initialize`.

Indeed. That appears at the following spot of one of my DConf 
presentations, which touches on several points relevant to writing a C 
library in D:

   https://youtu.be/FNL-CPX4EuM?t=2585

Ali



More information about the Digitalmars-d-learn mailing list