Demonen@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 11 months agoGotta watch them nil pointers!lemmy.mlimagemessage-square13fedilinkarrow-up1181arrow-down15
arrow-up1176arrow-down1imageGotta watch them nil pointers!lemmy.mlDemonen@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 11 months agomessage-square13fedilink
minus-squareP1r4nha@feddit.delinkfedilinkarrow-up16·11 months agoYou gotta allocate your GFs statically or this just keeps happening.
minus-squareTolookah@discuss.tchncs.delinkfedilinkarrow-up10·11 months agoI tried to declare my GF global, but she became an astronaut, and I get linking errors
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up15·11 months agoMate, your GF is definitely global. I was able to access her just fine… read AND write.
minus-squaredatelmd5sum@lemmy.worldlinkfedilinkarrow-up4·11 months agoI’d add an imaginary boolean flag to the GF class and always have an initial GF where imaginary == True.
You gotta allocate your GFs statically or this just keeps happening.
I tried to declare my GF global, but she became an astronaut, and I get linking errors
Mate, your GF is definitely global. I was able to access her just fine… read AND write.
I’d add an imaginary boolean flag to the GF class and always have an initial GF where imaginary == True.
*‘^You gotta allocate you GF$’