Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 years agovoid *sh.itjust.worksexternal-linkmessage-square13linkfedilinkarrow-up1650arrow-down19
arrow-up1641arrow-down1external-linkvoid *sh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 years agomessage-square13linkfedilink
minus-square🇨🇦 tunetardis@lemmy.calinkfedilinkarrow-up38·2 years agoFair, though I guess my interpretation was that void* is kind of like a black hole in that anything can fall into it in an unsettling way that loses information about what it was?
minus-squareTraister101@lemmy.todaylinkfedilinkarrow-up10·2 years agoIt erases the type of what your pointing at. All you have is a memory location, in contrast to int* which is a memory location of an int
Fair, though I guess my interpretation was that
void*is kind of like a black hole in that anything can fall into it in an unsettling way that loses information about what it was?It erases the type of what your pointing at. All you have is a memory location, in contrast to
int*which is a memory location of an int