digitalmars.D.learn - Re: C callback receives bad pointer argument
- bearophile <bearophileHUGS lycos.com> Jun 30 2011
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