[Issue 23926] ImportC: D can’t pass pointer to const struct to C function declared taking pointer to const struct

2024-02-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23926 Lance Bachmeier changed: What|Removed |Added CC||la...@lancebachmeier.com --- Comment #4 fr

[Issue 23926] ImportC: D can’t pass pointer to const struct to C function declared taking pointer to const struct

2023-05-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23926 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 23926] ImportC: D can’t pass pointer to const struct to C function declared taking pointer to const struct

2023-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23926 --- Comment #2 from dave287...@gmail.com --- (In reply to dave287091 from comment #1) > Thinking more about this, C doesn’t have transitive const so maybe this is > actually correct. Maybe D needs head const to properly express C const. The error mes

[Issue 23926] ImportC: D can’t pass pointer to const struct to C function declared taking pointer to const struct

2023-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23926 --- Comment #1 from dave287...@gmail.com --- Thinking more about this, C doesn’t have transitive const so maybe this is actually correct. Maybe D needs head const to properly express C const. --

[Issue 23926] ImportC: D can’t pass pointer to const struct to C function declared taking pointer to const struct

2023-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23926 dave287...@gmail.com changed: What|Removed |Added Keywords||ImportC --