News for hackers. Stuff that matters.
Re:Objective-C Memory Management For Lazy People by tzs on Thursday December 09, 2010 @05:27AM (#1986897)
> If someone were to write such an article about C, then it would have just one line: if you malloc, then you must free.

That implies you cannot return malloc'ed memory to a caller in C. I doubt many people are willing to live under that restriction.

Re:Objective-C Memory Management For Lazy People by Xuzz on Thursday December 09, 2010 @12:58PM (#1988341)
Many C APIs do exactly that: they require you (the caller) to malloc your own memory, then pass in a pointer.