Is it possible to call D functions from C++
krzaq via Digitalmars-d
digitalmars-d at puremagic.com
Wed Mar 18 07:40:44 PDT 2015
On Wednesday, 18 March 2015 at 14:20:19 UTC, Benjamin Thaut wrote:
> On Wednesday, 18 March 2015 at 14:17:13 UTC, Namal wrote:
>> Hello, as in the title. How can I call D functions from C++
>> (If my main() is in a c++ file).
>> Thanks alot!
> extern(C++) void SomeDFunction()
> void SomeDFunction();
> void main()
> Please also see:
> Kind Regards
I'm pretty sure the OP wanted to call D functions from C++, not
C++ functions from D.
More information about the Digitalmars-d