Demivec wrote:
I think instead of disallowing it, it would be better to simply issue a warning that a duplicate declaration was found.
It would be better, before considering adding warnings, to implement a way to disable specific warnings.
I would really dislike (read: hate) to get a warning every time I compile a program about something which is perfectly legal for the language as it stands now.
Especially since a warning in PB is an obnoxious window you must dismiss instead of message in the build log, for some reason I cannot imagine.
Not even sure if a warning is really opportune.
PB does not give warnings for things like these:
and those can happen a lot more frequently I think.
About the topic (Globals in procedures):
http://www.purebasic.fr/english/viewtop ... 65#p409965