Re: Calling D from C, C++, Python…

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 11 12:50:34 PDT 2015


On 2015-09-10 20:01, Russel Winder via Digitalmars-d-learn wrote:
> Is there an easy way of knowing when you do not have to initialize the
> D runtime system to call D code from, in this case, Python via a C
> adapter?

You always need to initialize the D runtime, unless you have a D main 
function. You can initialize the runtime as many times you like, 
assuming you also deinitialize it the same number of times.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list