Swift does away with pointers == pervasive ARC

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 17 15:11:42 PDT 2014


On 6/17/2014 2:51 PM, Kapps wrote:
> Is there a way to move the costs of exception handling to occur
> only if an exception is actually encountered?

That's already been done to a large extent. But you can see what's left for 
yourself - compile some shared_ptr<T> code with clang/g++/VC++ and take a look 
at the generated code.


> I'm guessing there's also no way to actually estimate what sort
> of performance hit ARC would bring?

Yes, there is. Write code that a hypothetical ARC would generate, and then test it.



More information about the Digitalmars-d mailing list