The books first explain the problem (using ARC) about "invalid" links, as in this example:
NSDate* date1=[[NSDate alloc]init];
NSDate* date2=date1;
[date1 release];
NSLog(@"%@",date2);
So, I understood the save / release mechanism: in this case, the instruction will be:
date2=[date1 retain];
But when it comes to strong / weak links, it sounds like a contradiction with me:
"By default, links are strong. If you assign an object to a strong link, ARC assumes that you want this object to stick and persist implicitly."
Is this not a contradiction to what has been said before?
date2 is strong by default, so it must implicitly save date1, and there would be a bad access exception.
Of course, I didn’t understand something, can someone explain this to me better?