D-DLLs & Python

bearophile bearophileHUGS at lycos.com
Wed Feb 20 06:36:54 PST 2013


Chris:

> extern (C) {export void printThis(char* str);}

Maybe the D wiki should contain info to save some time and 
experiments to people.

Possible alternative syntax:

extern(C) export void printThis(char* str);

Also, think if you want some const:

extern(C) export void printThis(const(char)* str);

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list