[fpc-pascal] strange "with" usage
memsom
memsom at interalpha.co.uk
Fri Jun 8 13:29:47 CEST 2007
> 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.
with PropInfo^, PropType^^ do [...]
is the same as
with PropInfo^ do begin
with PropType^^ do begin
[...]
end;
end;
but is extremely horrible code. Try changing it to that and any further
errors should become clearer.
M
More information about the fpc-pascal
mailing list