[fpc-pascal] type helpers

Michael Van Canneyt michael at freepascal.org
Fri Jan 11 11:28:44 CET 2019



On Fri, 11 Jan 2019, Mattias Gaertner via fpc-pascal wrote:

> Hi,
>
> A type helper can change Self.
> I wondered how FPC 3.3.1 handles properties and got some
> unexpected results. Is this by design, a bug, or not-yet-implemented?

Delphi acts the same, so for FPC: by design...

You will see that there are other pitfalls, for example when using helpers
on properties of type record. I have been bitten by this more than once.

Michael.



More information about the fpc-pascal mailing list