[fpc-pascal] fpc trunk = Operator is not overloaded: "Class Of TBlobField" and "Boolean"
Bart
bartjunk64 at gmail.com
Sun Mar 8 16:06:13 CET 2020
On Sun, Mar 8, 2020 at 3:59 PM fredvs via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:
> To resume, the problem comes from "if fld1 is tblobfield".
No, you miss the point:
> if fld1 is tblobfield and (self.fblobintf <> nil) then begin
This will not compile anymore since the operator precedence of IS has
been altered (to conform to docs and Delphi)
So it is now parsed as:
if fld1 is (tblobfield and (self.fblobintf <> nil)) then begin
Use: if (fld1 is tblobfield) and (self.fblobintf <> nil) then begin
Bart
--
Bart
More information about the fpc-pascal
mailing list