Microsoft working on new systems language
Adam Wilson
flyboynw at gmail.com
Mon Dec 30 16:51:18 PST 2013
On Mon, 30 Dec 2013 16:45:50 -0800, Adam D. Ruppe
<destructionator at gmail.com> wrote:
> On Tuesday, 31 December 2013 at 00:21:21 UTC, Ola Fosheim Grøstad wrote:
>> Maybe I misunderstand, but isn't the purpose of std.allocator to set up
>> allocators that new can call into?
>
> No, it'll be a standard library interface.
>
> I really think the built-in new should be discouraged - it has a lot of
> disadvantages over using a library setup, and not many advantages.
Kind of like unique_ptr/shared_ptr but better. IIRC the GC is supposed to
be just another allocator, which is fine by me and won't be unfamiliar to
C++ guys. As a note though. Regular new is what the Java/C# guys will be
used, they don't use allocators routinely.
--
Adam Wilson
IRC: LightBender
Project Coordinator
The Horizon Project
http://www.thehorizonproject.org/
More information about the Digitalmars-d
mailing list