Demonen@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agoGotta watch them nil pointers!lemmy.mlimagemessage-square7fedilinkarrow-up1545arrow-down122
arrow-up1523arrow-down1imageGotta watch them nil pointers!lemmy.mlDemonen@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square7fedilink
minus-squareP1r4nha@feddit.delinkfedilinkarrow-up55·1 year agoYou gotta allocate your GFs statically or this just keeps happening.
minus-squareTolookah@discuss.tchncs.delinkfedilinkarrow-up21·1 year agoI tried to declare my GF global, but she became an astronaut, and I get linking errors
minus-squareagent_flounder@lemmy.worldlinkfedilinkEnglisharrow-up12·1 year agoPlus you won’t worry that you forget to free her
minus-squaredatelmd5sum@lemmy.worldlinkfedilinkarrow-up10·1 year agoI’d add an imaginary boolean flag to the GF class and always have an initial GF where imaginary == True.
minus-squareN3Cr0@lemmy.worldlinkfedilinkarrow-up9·1 year agoThe struct and its CRUD functions seem to be all implemented. Problem is: The Create method is never be called.
minus-squareP1r4nha@feddit.delinkfedilinkarrow-up8·1 year agoMight be a problem with the factory then.
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
Plus you won’t worry that you forget to free her
I’d add an imaginary boolean flag to the GF class and always have an initial GF where imaginary == True.
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.
*‘^You gotta allocate you GF$’