[fpc-devel] Overloading problem in generic class.

Bart bartjunk64 at gmail.com
Sun Sep 18 15:31:21 CEST 2022

On Sun, Sep 18, 2022 at 3:27 PM Martin Frb via fpc-devel
<fpc-devel at lists.freepascal.org> wrote:

> And if the base class has
>      function SameValue(AValue1, AValue2: T): Boolean; virtual; // but
> not abstract
> Which implements the old call, without typecast?

I think Werner already tried that and it faile on type Currency in
Win64 with fpc 3.2.2.
See https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39490

Also, overriding is needed for anything with a range > Single, so you
only spare yourself the implementation in TSpinEditEx, where you could
do a simple A=B comparison.


More information about the fpc-devel mailing list