Microsoft working on new systems language
Jakob Ovrum
jakobovrum at gmail.com
Tue Dec 31 02:40:01 PST 2013
On Tuesday, 31 December 2013 at 00:45:51 UTC, Adam D. Ruppe 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.
I suspect it will still be fine to use in situations where a
loose aliasing policy is required (so GC-exclusive
characteristics are depended on), such as scripts and certain
other application code. The same goes for using the concatenation
operators, over `Appender` et al. with a pluggable allocator.
For libraries though - definitely should be a red flag.
More information about the Digitalmars-d
mailing list