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

Reply via email to