AKMA's Random Thoughts

October 26, 2002

Best Fishes

A Happy b!rthday to b!x; I finally got Denise Howell onto my blogroll this week; I added Juliet Dodds to the University of Blogaria faculty list (I still want to scratch together a UBlog diploma, someday); and I corrected Alex Golub’s address to his new domain name. Good night!

Posted by AKMA at October 26, 2002 12:16 AM | TrackBack
Comments

For this program, it was a bit of overkill. It's a lot of overkill, actually. There's usually no need to store integers in the Heap, unless you're making a whole lot of them. But even in this simpler form, it gives us a little bit more flexibility than we had before, in that we can create and destroy variables as we need, without having to worry about the Stack. It also demonstrates a new variable type, the pointer, which you will use extensively throughout your programming. And it is a pattern that is ubiquitous in Cocoa, so it is a pattern you will need to understand, even though Cocoa makes it much more transparent than it is here.

Posted by: Dionisius at January 13, 2004 08:33 AM

Note the new asterisks whenever we reference favoriteNumber, except for that new line right before the return.

Posted by: Jesse at January 13, 2004 08:33 AM

When the machine compiles your code, however, it does a little bit of translation. At run time, the computer sees nothing but 1s and 0s, which is all the computer ever sees: a continuous string of binary numbers that it can interpret in various ways.

Posted by: Conrad at January 13, 2004 08:33 AM