Old Bug: Global variable not initialised properly

Marco van de Voort marcov at stack.nl
Fri May 18 18:29:20 CEST 2001


 
> I'm not sure why you do it like this -- perhaps it's just a relic
> from ancient times when GPC didn't know about importing interfaces.
> In this case, I'd suggest to get rid of it.
> Otherwise, any ideas for fixing this are welcome.

The only other solution I can think of: 

- such modules shouldn't be allow to initialise, and have stuff that must be
initialised global in the implementation part. (the part that is separately
compiled)

- All initialisation for the variabeles in the INTERFACE, are done by the
mainprogram.




More information about the Gpc mailing list