<p>Am 12.04.2016 23:54 schrieb "Jonas Maebe" <<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>>:<br>
><br>
> Sven Barth wrote:<br>
>><br>
>> Functions that use such global variables could have a flag added which<br>
>> gets added recursively and thus we could warn in the initialization<br>
>> sections if such routines are used nevertheless.<br>
><br>
><br>
> This is not desirable, because then you need to modify the interface information for such routines after their implementation gets parsed. Even if you do that, it's not possible, because<br>
> a) in case of circular dependencies, the implementation of unit1, which uses such a routine from the interface of unit2, may already be compiled by the time you set that flag<br>
> b) procedure variables<br>
></p>
<p>Right... -.-</p>
<p>Then I go back to the point to initialize those types afterwards. :) Or the suggestion by Thorsten might help...</p>
<p>Regards,<br>
Sven</p>