2 ms·
Automatic memory management is more general than that, it also includes stack allocation.
by zozbot234 3y ago
Automatic memory management is more general than that, it also includes stack allocation.
- dasyatidprime 3y agoI 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.