[fpc-devel]

Peter Vreman peter at freepascal.org
Thu Jun 30 09:35:22 CEST 2005


> Problem with real parameters in overloaded procs:
>
> When defining an operator P with a CURRENCY parameter, and overloading
> that
> operator with a DOUBLE parameter, the compiler cannot decide which one to
> take when it is called with an EXTENDED actual parameter. The same seems
> to
> be true for overloaded procs/funcs.
>
> I suggest the following change:
> the sort order for searching the appropriate routine should be done as
> follows:
>
> 1. exact match (as it is done now);
>
> 2. extending the precision upward;
>
> 3. shrinking the precision downward.

Thanks, patch applied.







More information about the fpc-devel mailing list