[fpc-devel] GetPropList and order of properties returned
Michael Van Canneyt
michael at freepascal.org
Tue Dec 20 11:31:51 CET 2005
On Tue, 20 Dec 2005, Graeme Geldenhuys wrote:
> Hi,
>
> What are the rules regarding the order of a unsorted list of published
> properties using the GetPropList method, when inheritance has been used.
> I had unit tests from a Delphi app that detected this difference.
>
> Below is the results from Delphi and FPC. The first set has been compiled
> with Delphi 7 and the second set of results from a exectable compiled with
> FPC 2.0.1
>
> As you can see, Delphi lists the properties from the root object out, and FPC
> lists them from the outer object in. Which one is doing it correctly, or is
> there no set rule?
There is no set rule. If I remember correctly, the order changed in
Delphi, because I seem to remember that it was as FPC (D5 or so).
Michael.
More information about the fpc-devel
mailing list