Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 11 months agoBill is a pro grammersh.itjust.worksimagemessage-square101fedilinkarrow-up1807arrow-down196
arrow-up1711arrow-down1imageBill is a pro grammersh.itjust.worksCows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 11 months agomessage-square101fedilink
minus-squaretowerful@programming.devlinkfedilinkarrow-up63arrow-down2·edit-211 months ago// increase the dynamically allocated memory space of a word sized integer stored at the memory address represented by the symbol "x" by the integer 1 and terminate the instruction
minus-squaremorrowind@lemmy.mllinkfedilinkarrow-up38·11 months agoWait why is it dynamically allocated and why are you increasing the memory. Something is very wrong here
minus-squarefloofloof@lemmy.calinkfedilinkEnglisharrow-up33·11 months agoFound the bug. Thank goodness for comments.
minus-squareAnders429@programming.devlinkfedilinkarrow-up3·11 months agoOh, is this what they meant by “commenting your code”?
minus-squareAnders429@programming.devlinkfedilinkarrow-up11·11 months agoWhy the heck does it need to be dynamically allocated? Just put that puppy on the stack.
minus-squaretowerful@programming.devlinkfedilinkarrow-up6·11 months agoThat’s what it used to do. But it was a bug, and the code has been fixed.
// increase the dynamically allocated memory space of a word sized integer stored at the memory address represented by the symbol "x" by the integer 1 and terminate the instruction
Wait why is it dynamically allocated and why are you increasing the memory. Something is very wrong here
Found the bug. Thank goodness for comments.
Oh, is this what they meant by “commenting your code”?
Why the heck does it need to be dynamically allocated? Just put that puppy on the stack.
That’s what it used to do.
But it was a bug, and the code has been fixed.