D 2015/2016 Vision?

bitwise via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 7 05:59:03 PDT 2015


On Wednesday, 7 October 2015 at 09:49:27 UTC, Marc Schütz wrote:
> RefCounted isn't implemented for classes, but there's no reason 
> why it shouldn't work.
>
>
> Really, I don't get why everyone wants to have builtin 
> refcounting, when all that's required is a working way to make 
> escape-proof references.

If you make a class that owns a resources that needs 
deterministic destruction, there is no guarantee that everyone 
will wrap that class in a RefCounted properly. Also, I've already 
stated many more problems with struct wrappers.



More information about the Digitalmars-d mailing list