Standard forensics

Aug 30, 2011 02:14

My life mutates and evolves, its vines clinging to the clay, cutting grooves in no particular pattern but gradually giving me form. Watching its progress is curious; are those tendrils so unlike the roots of these trees? Well, anyway ( Read more... )

Leave a comment

Comments 6

dvarin September 1 2011, 00:12:14 UTC
I am curious about the side effects of l-value to r-value conversion here. How could anyone tell whether you did it or not?
(Related to this is: If the answer to the preceding is "No one can," then it's not so much adding or removing a wart so much as it is just changing the color of one.)

Reply

rjmccall September 1 2011, 19:03:06 UTC
Oh, sorry. The way you convert an l-value (the location of an value stored in memory) into an r-value (an actual value) is you initialize a temporary with the value in memory. For non-class types, that means executing actual machine load instructions; for class types, that means calling a copy constructor, which then generally executes actual machine loads and stores ( ... )

Reply


nickjong September 1 2011, 22:47:26 UTC
Cool, I didn't know ARC was you. Nice!

Reply


aleffert September 6 2011, 17:20:09 UTC
I tried to use arc briefly for a new project, but it freaked me out. In particular, I couldn't figure out if

self.someProperty = [[SomeClass alloc] init];

Was the right thing or not. It seems like it should be a leak. If it's not, I'm freaked out since all the naming conventions are out the window. If it is, I couldn't figure out how to fix it, because, release and autorelease are invalid.

Reply

aleffert September 6 2011, 17:21:53 UTC
I should add that I was excited about using it in the first place and I think this is mostly a documentation issue. So good job!

Reply

rjmccall September 6 2011, 20:18:30 UTC
It's not a leak. Don't freak out. :) The naming conventions aren't out the window; it's just that ARC enforces them for you, and does the right thing in response to them. So in this case, ARC knows that -init returns a retained pointer, and it knows it needs to balance that out at some point, and so it does.

Reply


Leave a comment

Up