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

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 13 03:17:05 PDT 2015


On 2015-09-13 12:10, Jakob Ovrum wrote:

> On Linux and other ELF-using platforms, initialization and
> deinitialization functions could be placed in the .init and .deinit
> special sections, but I don't know if druntime has any convenient
> provisions for this. With GDC and LDC you can probably use a pragma to
> put functions in these sections, but I don't know if DMD has such a pragma.
>
> I don't know what the equivalent is for Apple's Mach-O shared libraries.

It's supported in Mach-O as well, not sure about the section names though.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list