[fpc-devel] Initialize/Finalize management operators and Default intrinsic

Sven Barth pascaldragon at googlemail.com
Wed Apr 13 08:05:05 CEST 2016


Am 12.04.2016 23:54 schrieb "Jonas Maebe" <jonas.maebe at elis.ugent.be>:
>
> Sven Barth wrote:
>>
>> Functions that use such global variables could have a flag added which
>> gets added recursively and thus we could warn in the initialization
>> sections if such routines are used nevertheless.
>
>
> 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
> 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
> b) procedure variables
>

Right... -.-

Then I go back to the point to initialize those types afterwards. :) Or the
suggestion by Thorsten might help...

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160413/1add9f91/attachment.html>


More information about the fpc-devel mailing list