www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Re: C callback receives bad pointer argument

 Now that typedef is deprecated what solution do you suggest instead?

Something like this, I think: struct ccharPtr { const char* ptr; alias ptr this; } ccharPtr toStringz2(string s) { return ccharPtr(toStringz(s)); } Bye, bearophile
Jun 30 2011