* Keith Rollin <[EMAIL PROTECTED]> [2003-06-26 08:43 -0700]: > The prevalent use of this technique throughout the early Palm OS > source code and samples lead me to believe that the author just > didn't know about offsetof. It was only in later versions of the OS > and SDK (around Palm OS 3.5, I think) that the OffsetOf macro was > added and used.
Keith's got it right; I didn't know about OffsetOf when I wrote the code for the Librarian sample app. Because I wrote the code at the same time I was writing the book, I didn't get a chance to devote nearly as much time to the code as I'd have liked. I apologize for any confusion I've caused; looking back at that code, I find that it confuses *me*, so it obviously could use a rewrite (or at least a few more comments). -- /|\ Lonnie Foster <[EMAIL PROTECTED]> http://pobox.com/~tribble \|/ I'm not ashamed of my roots. I just wish they'd been /|\ planted somewhere else. -- Hugh MacLeod (gapingvoid.com) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
