WhatŽs wrong with the following declarations: function Any(A1 : Extended; A2 : Extended) : AnyType; overload;
function Any(A1 : Integer; A2 : Integer) : AnyType; overload; FPC 2.04 on Win32 says, both functions have same parameter list. Consequently, there is no error message, when IŽm feeding the extended version with Integers. Say, such autocast is a convenience feature in many cases. For my application itŽs weird. What is the appropriate workaround? Is there some homemade type checking like if A1 is Integer then SureItsInteger else SureItsExtended? Wolfram _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal