On 16 September 2010 11:31, Jonas Maebe wrote: > > You cannot overload (or rather change the meaning of) operators for > operator/type combinations that are natively handled by the compiler. "type > longword" is handled the same as a regular longword by the compiler as far > as all operators are concerned.
OK, I thought the TfpgColor type will act as a new type, and operator overloading could be possible. I guess I was wrong. :-/ Is there any way to tell the compiler to treat TfpgColor as a new type? -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal