[fpc-devel] Abs(Variant) unexpected result

Bart bartjunk64 at gmail.com
Sun Feb 25 18:24:19 CET 2018

On Sun, Feb 25, 2018 at 5:59 PM, Michael Van Canneyt
<michael at freepascal.org> wrote:

>> So, all we can do is let the compiler pick the float version for
>> Abs(Variant)?
> It seems so.

OK, for D compatibilty (untill they change that).

> Better yet, don't use variants. They violate what Pascal stands
> for: type safety.
> If you really _must_ use them, do any conversions explicitly.

Point taken.


More information about the fpc-devel mailing list