[fpc-devel] Overloading problem in generic class.
Bart
bartjunk64 at gmail.com
Sun Sep 18 15:27:09 CEST 2022
On Sun, Sep 18, 2022 at 3:09 PM Werner Pamler via fpc-devel
<fpc-devel at lists.freepascal.org> wrote:
> > Werner reported that it does not compile on MacOS (64 bit) with fpc 3.3.1.
> Sorry if I was not precise here: I only tested with fpc 3.2.0.
I misread, my mistake.
Q1: these ifdef-ed code: does it have to be in the protected section
of the interface, or can it be moved to the private section?
I'lld like to group them together.
Q2: can you set MaxValue to +Inf in the OI with these changes you made?
If so, we should close both issues as fixed.
Q3: since 3.2.2 can compile the SameValue(FMaxValue, T(DefMaxValue)),
would that also resolve
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39490
(Compilation issue with fpc 3.2.2 in TSpinEditExBase when a descendant
class work with currencies)?
Currently the define is not accurate, at least for then issue in the
example in my first post it is incorrect, since this affects all
compiler versions < 3.2.2, but not 3.2.2 itself.
Or are these two different bugs, affecting different compiler versions?
If that is the case, we either need 2 defines for the bugs, or we
implement SameValue unconditionally (see also the remarks about
SameValue and Int64 above).
--
Bart
More information about the fpc-devel
mailing list