Microsoft working on new systems language

Chris Cain clcain at uncg.edu
Mon Dec 30 10:22:21 PST 2013


On Monday, 30 December 2013 at 18:02:26 UTC, Ola Fosheim Grøstad 
wrote:
> In cpp you transparently replace new gobally and through a hack 
> (include files) map it to different pools for different 
> sections of your code if you wish. Although explicit allocation 
> from pools using regular new-syntax would be nice too.

Sounds pretty dangerous to me. I wouldn't really describe that as 
"transparent" either. If it's working for you in C++, that's 
great. I wouldn't count on D adopting such an approach, however.

I think in the near future there's going to be a standard 
"allocator interface" (std.allocator) which will allow you to 
easily use different allocation schemes depending on what you're 
doing. I'm not sure how well this will work in practice (I'll 
need to play around with it some to see how well it works before 
I make a firm judgement), but I have good reason to believe it'll 
work well and it'll likely cover your use-cases pretty well too.


More information about the Digitalmars-d mailing list