June 30, 2011 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
|
Copyright © 1999-2021 by the D Language Foundation