Demonen@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 months agoGotta watch them nil pointers!lemmy.mlimagemessage-square12fedilinkarrow-up1350arrow-down114
arrow-up1336arrow-down1imageGotta watch them nil pointers!lemmy.mlDemonen@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 months agomessage-square12fedilink
minus-squareP1r4nha@feddit.delinkfedilinkarrow-up36·9 months agoYou gotta allocate your GFs statically or this just keeps happening.
minus-squareTolookah@discuss.tchncs.delinkfedilinkarrow-up11·9 months agoI tried to declare my GF global, but she became an astronaut, and I get linking errors
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up17·9 months agoMate, your GF is definitely global. I was able to access her just fine… read AND write.
minus-squareN3Cr0@lemmy.worldlinkfedilinkarrow-up5·9 months agoThe struct and its CRUD functions seem to be all implemented. Problem is: The Create method is never be called.
minus-squareP1r4nha@feddit.delinkfedilinkarrow-up6·9 months agoMight be a problem with the factory then.
minus-squareagent_flounder@lemmy.worldlinkfedilinkEnglisharrow-up5·9 months agoPlus you won’t worry that you forget to free her
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.
The struct and its CRUD functions seem to be all implemented. Problem is: The
Create
method is never be called.Might be a problem with the factory then.
Plus you won’t worry that you forget to free her
*‘^You gotta allocate you GF$’