RFC: moving forward with @nogc Phobos

via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 30 05:55:39 PDT 2014


On Tuesday, 30 September 2014 at 12:51:25 UTC, Paulo  Pinto wrote:
>
> It works when two big ifs come together.
>
> - inside the same scope (e.g. function level)
>
> - when the referece is not shared between threads.
>
> While it is of limited applicability, Objective-C (and 
> eventually Swift) codebases prove it helps in most real life 
> use cases.

But Objective-C has thread safe ref-counting?!

If it isn't thread safe it is of very limited utility, you can 
usually get away with unique_ptr in single threaded scenarios.


More information about the Digitalmars-d mailing list