On Wed, 17 Apr 2002, Chris Tutty wrote: > > > FtrGet is documented as returning 0 if no error. Can someone check > > > the source to see whether it actually returns errNone (in which case > > > I'll raise a documentation bug). > > > > Since errNone is a preprocessor symbol expanding to something equivalent > > to (and of the same type as) 0, and that value (of course) can't change > > for reasons of binary compatibility: > > > > How will you tell the difference? > > Because, in theory, 0 and errNone are different. And when I'm > coding tired I prefer to be careful.
in theory and reality, they are the same :) zero is zero, just as NULL is 0 (well, arguable), errNone is 0, false is 0 - these tags only exist for code clarity purposes. > Hmm. Binary compatibility. Good point. Mind you, I've always > thought that checking the headers 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. the headers have and will always be the best documentation :) grep is one of your best friends.. its a pity more people dont do the 'cd /palmdev/sdk; grep -R keyword' approach more often *g* [if of course your using prc-tools] :P // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
