[Issue 17060] betterC std.allocator

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 23 12:05:49 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17060

radu.racariu at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |radu.racariu at gmail.com

--- Comment #1 from radu.racariu at gmail.com ---
+1.

Allocators are missing from betterC mode, and they are a very important
improvement over C's malloc/free.

I think scope(xxx) and struct destructors need to work in betterC mode as a
mandatory requirement for allocator redesign.

In my opinion they need to be split in 2 : C runtime (core?), and D runtime
based - the C runtime based ones should be obviously usable from betterC and
ideally the D runtime one should be constructed on the basic blocks provided by
the C runtime implementation.

Given the experimental nature of the allocatos package this would be a good
time to revisit their design and improve their modularity

--


More information about the Digitalmars-d-bugs mailing list