[fpc-pascal] Integer = Extended?

Marco van de Voort marcov at stack.nl
Thu May 17 14:14:45 CEST 2007


> Finally I agree in general, regarding good practice. But my application is
> about image processing. The overloaded methods are for resizing images.
> The extended version accepts relative input, say in percent, the integer
> version expects absolute pixel size. I thought it?s a good idea, to call
> all such methods by the same name, stressing the compiler?s overload
> feature a bit.

Not a good idea: _)

Anyway, maybe your original problem is related to what happens
if the argument type it is not extended or integer, and the argument type
can be converted to both.



More information about the fpc-pascal mailing list