[fpc-devel] Abs(Variant) unexpected result
Bart
bartjunk64 at gmail.com
Sun Feb 25 15:59:33 CET 2018
On Sun, Feb 25, 2018 at 3:40 PM, Michael Van Canneyt
<michael at freepascal.org> wrote:
> Only if we add an
> Abs(Variant) : Variant; which will then make the choice will this work.
If the compiler accepts Abs(Variant), it should IMHO have a correct
overload for this.
(Maybe in the variants unit?)
I don't know how Delphi behaves, but the official Delphi docs state
that Abs() only has overloads for floats, integer and int64.
If their compiler behaves as the docs say, Abs(Variant) would be a syntax error.
I asked on Dutch Delphi forum if someone could test.
Bart
More information about the fpc-devel
mailing list