Re: [fpc-devel] initialization order of units

2020-10-22 Thread J. Gareth Moreton via fpc-devel
This is just my personal opinion, but I do think that using "initialization" is risky if it uses anything outside of the unit, and hence you should minimise any inter-dependencies.  If I had to suggest a concrete workaround, it would be a initialisation routine that you call manually or as part

Re: [fpc-devel] initialization order of units

2020-10-22 Thread Florian Klämpfl via fpc-devel
Am 22.10.20 um 23:04 schrieb Pascal Riekenberg via fpc-devel: Jonas Maebe via fpc-devel hat am 22.10.2020 22:28 geschrieben: 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 pr

Re: [fpc-devel] initialization order of units

2020-10-22 Thread Pascal Riekenberg via fpc-devel
> Jonas Maebe via fpc-devel hat am 22.10.2020 > 22:28 geschrieben: > > > 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 initializatio

Re: [fpc-devel] initialization order of units

2020-10-22 Thread Jonas Maebe via fpc-devel
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

[fpc-devel] initialization order of units

2020-10-22 Thread Pascal Riekenberg via fpc-devel
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 be