On Friday, 6 July 2018 at 19:56:23 UTC, JN wrote:
On Friday, 6 July 2018 at 18:19:08 UTC, Ecstatic Coder wrote:Because in C++, smart pointers and collections will make sure to free unused memory block as soon as they need to, and no later.I bet if D was reference counted from the start, C++ programmers would complain about "smart pointer overhead" and how ref counting is too slow for games/real time and you should be able to manage your memory yourself.
Probably ;)
