[Issue 16008] New: FreeList should implement deallocateAll, as SharedFreeList does
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 9 22:36:41 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16008
Issue ID: 16008
Summary: FreeList should implement deallocateAll, as
SharedFreeList does
Product: D
Version: D2
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
Priority: P1
Component: phobos
Assignee: b2.temp at gmx.com
Reporter: b2.temp at gmx.com
THis can be necessary.
An example that was posted on SO ([1]), if one embeds a FreeList in an
aggregate, it's very probable that the FreeList has to be cleared in the
aggregate __ctor, which is not possible now.
[1]:
http://stackoverflow.com/questions/36719532/how-can-i-free-all-the-items-of-a-freelist
--
More information about the Digitalmars-d-bugs
mailing list