D/Objective-C, extern (Objective-C)

Walter Bright newshound2 at digitalmars.com
Mon Jun 24 10:53:40 PDT 2013


On 6/24/2013 6:27 AM, Michel Fortin wrote:
> Finally, there is a couple of features that were added to Objective-C since then
> that should be added to the todo list to keep feature parity. Some of those, if
> implemented right, could benefit the rest of D too. For instance: ARC (automatic
> reference counting) which is becoming a must in Objective-C.

Arc has very serious problems - I don't see how it can be done and be memory 
safe without adding extensive pointer annotations. The general problem is 
someone taking the address of a member of the reference counted object. The rc 
goes to zero, the objects gets deleted, and there's that dangling pointer to it.



More information about the Digitalmars-d-announce mailing list