> 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.




_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to