Re:Improving _Generic in C2y
by colonwqbang on Sunday August 04, 2024 @05:10PM
(#41156363)
Nice, does this mean we can have const-generic accesors now? I.e. &s->somefield and get a const pointer if s was a const pointer, but a mutable one otherwise? I guess we still need to define two functions though, but that can probably be handled by macros. This is something that really hinders use of const in current C.
[ Parent
| on HN ]
There are no comments on this comment yet.