[fpc-pascal] strange "with" usage
Michael Van Canneyt
michael at freepascal.org
Fri Jun 8 10:23:43 CEST 2007
On Fri, 8 Jun 2007, dhkblaszyk at zeelandnet.nl wrote:
> In a delphi app I came across the following syntax;
>
> with PropInfo^, PropType^^ do
>
> Which results in a "Error: Illegal qualifier". Has anyone an idea of what
> is meant here and how to port that to FPC? I'm puzzled.
There is an extra (or was it one less ?) dereference needed for
PropInfo^, I think. This is a known issue, which we're not going
to solve: it has to do with the internal storage of the RTTI
information.
People should use the functions in the TypInfo unit to retrieve
this information. You can find there what the exact difference is
between FPC/Delphi structures. AFAIK there is only 1.
Michael.
More information about the fpc-pascal
mailing list