JPDev@programming.dev to Programmer Humor@programming.dev · edit-23 months agoDo you know who can help?programming.devimagemessage-square9fedilinkarrow-up110arrow-down11
arrow-up19arrow-down1imageDo you know who can help?programming.devJPDev@programming.dev to Programmer Humor@programming.dev · edit-23 months agomessage-square9fedilink
minus-squareEphera@lemmy.mllinkfedilinkarrow-up0·3 months agoDumb question, but when would you need two deep? Is it when you store a pointer as a field in a struct? If so, isn’t that a massive footgun, because the pointer might go invalid at any point? 🫠
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up1·3 months agoPointers to arrays or arrays of pointers are common examples. Your pointers won’t just magically become invalid. You gotta fuck 'em up first.
Dumb question, but when would you need two deep? Is it when you store a pointer as a field in a struct?
If so, isn’t that a massive footgun, because the pointer might go invalid at any point? 🫠
Pointers to arrays or arrays of pointers are common examples.
Your pointers won’t just magically become invalid. You gotta fuck 'em up first.