[fpc-pascal] Record Constructors which differ in parameter lists

Thomas Kurz fpc.2021 at t-net.ruhr
Fri May 12 12:52:49 CEST 2023


> I would expect the type helper to remain functional. The types are the same
> for all purposes except they have a different RTTI entry.

But this behaviour seems inconsistent to me. For example:

With "var x:double" I can use "x.IsNan". With TDateTime, which is defined as "type TDateTime = type Double", I cannot.

With strings, I can use "x.IsEmpty". With Utf8String, which is defined as "type TUtf8String = type AnsiString", I cannot.



More information about the fpc-pascal mailing list