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

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

Reply via email to