On Sun, Sep 18, 2022 at 3:27 PM Martin Frb via fpc-devel
<fpc-devel@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.

-- 
Bart
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to