Passing string from D to c++

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Tue Jul 30 13:57:53 PDT 2013


On Tuesday, 30 July 2013 at 20:09:01 UTC, Milvakili wrote:

> So I need to pass them as char*, I can not pass them as string?

C++ doesn't have an immutable(char)[], it has char* and its own 
string class. To communicate with it one must choose a type both 
languages can understand, char* is that. D may be able to get 
away with providing a C++ string, but I'm not familiar with the 
integration layer.


More information about the Digitalmars-d mailing list