News for hackers. Stuff that matters.
Re:Garbage Collection for Systems Programmers by zozbot234 on Saturday March 30, 2024 @04:26PM (#39878291)
Automatic memory management is more general than that, it also includes stack allocation.
Re:Garbage Collection for Systems Programmers by dasyatidprime on Saturday March 30, 2024 @04:41PM (#39878438)
I agree; I meant “including” in the non-restrictive sense, not “including only”. Stack allocation is a special case where the lifetimes are arranged in a convenient way—see also escape analysis in languages where stack allocation isn't explicitly supported at the language level but can be added by the compiler.