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


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to