U++ Core vs D programming language

Tomas Lindquist Olsen tomas at famolsen.dk
Sat May 3 04:22:38 PDT 2008


Walter Bright wrote:
> Georg Wrede wrote:
>>> In C++, this approach proves to be equally good or better than
>>> garbage collected languages like Java or C#. While those languages
>>> are able to provide automatic management of heap resources, U++
>>> approach provides very deterministic automatic management of all
>>> resources.
>>
>> What should I tell people who quote the last paragraph?
> 
> Eh, what do I do if I need an object to survive past the end of its scope?

This is exactly what the U++ guys have solved in a really nice fashion, you return by value and 
the heap resources are transferred back (picked) without any allocate, copy, free "cycle".

I realize I could me misunderstanding you, but this really solves 99% of the cases I've ever 
faced...



More information about the Digitalmars-d mailing list