Code: Select all
*Label : Goto *Label
; Syntax error
Code: Select all
*Label : *Label :
; Error: duplicate label.
Code: Select all
*Label : Goto *Label
; Syntax error
Code: Select all
*Label : *Label :
; Error: duplicate label.
Code: Select all
*CreateImage(1,640,480) ; Syntax error.
Code: Select all
*Label : Goto Label
Melissa wrote:Not too disturbing, indeed, but still need more love.
The Help file states:Melissa wrote:Well, you are right - it's seems to be just a limitation of parser. So, there are some solution:Code: Select all
*Label : Goto Label
You don't have to put the operator * in front of the label name, and it's not a pointer either...Labels
All labels must be followed by a : (colon). Label names may not contain any operators (+,-,...) as well special characters (ß,ä,ö,ü,...).
Code: Select all
LabelName:
Code: Select all
LabelName :
Hope to have cleared some things up.If IsCrazy = 0 : MessageRequester("Info", "Not Crazy") : Else : MessageRequester("Info", "Crazy") : EndIf
Code: Select all
+Label : ; Syntax Error
Code: Select all
-Label : ; Syntax Error
Code: Select all
/Label : ; Syntax Error
Just testing, really.Besides it's good practice to do:
It was kind of sarcasm). Well, now we just should decide what is wrong here:UserOfPure wrote: Rings isn't a team member. He's just a forum mod.
Code: Select all
*Label : Goto Label ; No errors generated !
...’cause there are obvious conflict here. May be some poll would help ^^ ?Official manual wrote:Label names may not contain any operators
It is allowed (partially). Just look above.Rings wrote:such syntax is not allowed in PB (neither in classic VB )
Then, if it isn't intended behavior, thread should be moved back to "Bug Reports", right ?If it works, it's just a fluke.
So, isn't a bug when compiler doesn't do required checks for enforcing syntax rules ? I'm out of words here.No, because it's not a bug if you don't do what the manual says
Honestly ? Me too.And I feel like I'm feeding the troll here.