What is Nostr?
✧✦✶Catherine✶✦✧ /
npub1y6d…d9nx
2024-07-03 02:53:57
in reply to nevent1q…cvrv

✧✦✶Catherine✶✦✧ on Nostr: cast a pointer to the right type each time you use them? a more principled way ...

cast a pointer to the right type each time you use them?

a more principled way (volatile structs are cursed and so are bitfields) are inline accessor methods but i don't expect c devs to use them

in c++, i'd use templates over a const
Author Public Key
npub1y6dlvsas2kk6xjmj82rk2gda8lrtdkp4002f2gz86qqyudmc5utqk5d9nx