I'm surprised the RGBColorType was not declared as a union of UInt32 and other elements. But to copy or compare RGBColorTypes quickly without having to resort to MemMove or Compare, is there a CPU-effective smart cast I can use (( UInt32 ) is refused by the compiler)? Is this cost-free (CPU-wise):
RGBColorType a, b; *( UInt32 * ) &a = 0xffffffffL; *( UInt32 * ) &b = 0x80800101L; if ( ( *( UInt32 * ) &a ) != ( *( UInt32 * ) &b ) ) Luc Le Blanc -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
