[fpc-pascal] "Error: Impossible operator overload" ...why?

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Sep 16 11:44:44 CEST 2010


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/



More information about the fpc-pascal mailing list