small medium large xlarge

Generic-user-small
30 Dec 2008, 00:32
Bill Barbour (1 post)

So I did the exercise for 7.10 and my solution is very close to Daniel’s, but I left out the call to retain on the incoming parameter @name@. My code is working as desired, but I can’t help but feel I have this runtime “gotcha” in there for not calling retain. What would happen if the @name@ parameter were to get cleaned up on me, and how often would it occur? Is it worthwhile to walk the readers through a code sample that exposes this “gotcha” more prominently?

Awesome book, thanks!

Daniel_pragsmall
09 Jan 2009, 12:02
Daniel H Steinberg (98 posts)

Thanks Bill,

Let me think of where to put a gotcha example. It would probably come much later … I think it might make sense in the Persistence chapter that I just pushed.

Thanks,

Daniel

You must be logged in to comment