Well, although completely illegal it works. Why would CodeWarrior allow
me to perform such a haneous action if it was that bad.

It doesn't work. CodeWarrior is allowing the code because you explicitly used casts to tell the compiler that you knew what you were doing. The original case wasn't caught because the compiler doesn't try to scan your whole code and make sure that your pointers are pointing to valid memory. This isn't something it can tell at compile time.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to