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

Michael Van Canneyt michael at freepascal.org
Fri May 12 14:12:18 CEST 2023

On Fri, 12 May 2023, Thomas Kurz via fpc-pascal wrote:

>> 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.

It's not because I expect it to, that it is actually so.

As I said, Sven will need to explain what the current behaviour actually


More information about the fpc-pascal mailing list