labels are global?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Tomio.

Hello,

Is it intended that labels are global?

Procedure a()
abc:
EndProcedure
;
Procedure b()
abc:
EndProcedure

..gives the "duplicate label" error.

I can't find an appropriate statement in the docu, and -yes- the same with "search forums".
Do I have to care for different labels in all Procedures?

Greetings../tomio
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by freak.

As you can see, it reports the 'duplicate label' error, so they are Global.

Nearly everything in PB is Global (exept Variables)

Timo
Post Reply