Maybe D is right about GC after all !
bachmeier
no at spam.net
Tue Dec 19 23:53:04 UTC 2017
On Tuesday, 19 December 2017 at 13:14:50 UTC, Mark wrote:
> On Tuesday, 19 December 2017 at 09:54:05 UTC, Walter Bright
> wrote:
>> "C, Python, Go, and the Generalized Greenspun Law"
>>
>> http://esr.ibiblio.org/?p=7804
>
> What do you think of the following comment to that article?
>
> "In well-written modern C++, memory management errors are a
> solved problem. You can just write code, and know that the
> compiler and library will take care of cleaning up for you,
> just like with a GC-based system, but with the added benefit
> that it’s deterministic, and can handle non-memory resources
> such as file handles and sockets too."
I'm no C++ expert, but isn't that because of the use of unique
pointers and shared pointers? And aren't shared pointers
reference counted and stuck with the usual limitations associated
with reference counting?
More information about the Digitalmars-d
mailing list