At 7:08 PM -0400 7/18/01, Paul Nevai wrote:
>Dear Palm:
>
>I propose that in upcoming OSs, FtrGet () accept "NULL" for valueP just to
>check if the feature with featureNum exists. This would make coding somewhat
>simpler.
>
> Err FtrGet (UInt32 creator, UInt16 featureNum, UInt32 * valueP)
It seems to me that that would make coding somewhat more difficult.
You'd have stuff like the following all over the place:
UInt32 dummy;
if (canAcceptNULL) // Initialized earlier.
exists = FtrGet (creator, number, NULL) == errNone;
else
exists = FtrGet (creator, number, &dummy) == errNone;
That's a lot messier than:
UInt32 dummy;
exists = FtrGet (creator, number, &dummy) == errNone;
-- Keith
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/