LWN.net Logo

Not everything is a nail...

Not everything is a nail...

Posted Jan 25, 2011 22:18 UTC (Tue) by daglwn (subscriber, #65432)
In reply to: Not everything is a nail... by etienne
Parent article: Sobotka: Why GIMP is inadequate

Will that local structure also close files for me when it goes out of scope? Or does that local structure free memory pointed to by members of that structure when it goes out of scope? Or does that local structure release a lock it holds when it goes out of scope?

RAII is about MUCH more than memory.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds