da_cow (she/her)@feddit.org to Programmer Humor@programming.dev · 5 days agoI got to avoid memory management for quite some timefeddit.orgexternal-linkmessage-square65fedilinkarrow-up1339arrow-down112file-text
arrow-up1327arrow-down1external-linkI got to avoid memory management for quite some timefeddit.orgda_cow (she/her)@feddit.org to Programmer Humor@programming.dev · 5 days agomessage-square65fedilinkfile-text
Finally I have a valid reason to learn about memory management. It was also hella weird when encountering it.
minus-squareentwine@programming.devlinkfedilinkarrow-up2·4 days ago being inserted automatically. Aka the entire point of RAII
minus-squareresipsaloquitur@lemmy.worldlinkfedilinkarrow-up1·3 days agoThe point of RAII is that a resource is allocated and freed in the same scope. You can free it with an explicit call to a destructor, an implicit call, or with memory allocated on the stack, just wait for the stack frame to be exited.
Aka the entire point of RAII
The point of RAII is that a resource is allocated and freed in the same scope.
You can free it with an explicit call to a destructor, an implicit call, or with memory allocated on the stack, just wait for the stack frame to be exited.