Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 7 months agovoid *sh.itjust.worksimagemessage-square13fedilinkarrow-up1641arrow-down110
arrow-up1631arrow-down1imagevoid *sh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 7 months agomessage-square13fedilink
minus-squaretunetardis@lemmy.calinkfedilinkarrow-up38·7 months 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·7 months 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