I was just looking at the 3.5 SDK and notices that FrmSetTitle has the
prototype

    void FrmSetTitle (FormType *formP, Char *newTitle)

and I was wondering why this wasn't

    void FrmSetTitle (FormType *formP, const Char *newTitle)

since my understanding is that the title string should never be written by
the form code.  Its not a big problem, it just makes me do a little const
casting in one of my routines.  I can understand that the real issue is that
a FormTitleType has a "Char *", not a "const Char *" as its text member, but
I'd rather the cast occur below the OS covers than above them.

On that same topic... any chance of a future SDK having FrmGetObjectPtr
return a "FormObjectType" rather than the current "void *".  Effectively its
just a prototype change, but it would make the intent clearer, and avoid
ugly C++ casting, since you could use the union member to get at the
appropriate pointer type.

--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to