[Issue 22759] ImportC: cannot modify const expression from dereferencing const pointer declared within function.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 2 15:58:04 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22759
--- Comment #7 from Steven Schveighoffer <schveiguy at gmail.com> ---
(In reply to dave287091 from comment #4)
> Just treat declarations of
> `int * data` and `int * const data` the same in the body of c functions (as
> long as they are not also static).
apologies, it looks exactly the same as the thing I just suggested! I didn't
read this fully.
But yes, I think this is the way forward.
Looking at the referenced issue, I can't see how it's any different actually.
--
More information about the Digitalmars-d-bugs
mailing list