On Wed, Apr 17, 2002 at 12:18:50AM +1200, Chris Tutty wrote:
> Because, in theory, 0 and errNone are different.
But, in practice, they're the same :-). In this context (that of Palm
OS error codes).
> I've always
> thought that checking the headers
We didn't check the headers -- we looked in the documentation :-).
> to see what hex value a named
> constant was set to was in the same category as running with
> scissors - eventually it's gonna hurt you.
Yes, but... there are different categories of named constant. Some
constants get names because they aren't constant (and so might change).
Some constants get names because they have bizarro values that are hard
to type without introducing typos. Some constants get names merely as
a stylistic convention. Sometimes different people like different
conventions. See also
http://www.eskimo.com/~scs/C-faq/q5.10.html
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/