[fpc-devel] initialization order of units
Jonas Maebe
jonas at freepascal.org
Thu Oct 22 22:28:40 CEST 2020
On 22/10/2020 21:35, Pascal Riekenberg via fpc-devel wrote:
> Have there been any changes to the initialization order of units in the
> last 6 month?
> I have a complex project with multiple units with initialization
> section. And now
> one of those units does not get initialized before it is used by the
> initialization part of
> an other unit. This worked at the beginning of the year!
It might be caused the fix for
https://bugs.freepascal.org/view.php?id=32352. Keep in mind that if
there are uses-cycles via the implementation section, the initialisation
order of the involved units is undefined.
Jonas
More information about the fpc-devel
mailing list