Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (kzhao, AndrewAMD), 656 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Syntax error:Can't go to FALSEGOTO:STRUCT@20::. #331321
07/03/10 12:38
07/03/10 12:38
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline OP

Programmer
Lukas  Offline OP

Programmer

Joined: May 2007
Posts: 2,043
Germany
This line:
if(win->tbmaps)

Lead to this warning:

Syntax error:Can't go to FALSEGOTO:STRUCT@20::.
< if(win->tbmaps)
>

Didn't know if I should put it here or to bug hunt.
The reason that this warning shows up seems to be that win->tbmaps is a struct (and no pointer). I meant to put something else into the brackets, so it's good that the compiler showed me that there was something wrong about it.

However, this warning is nowhere documented in the manual. And it's misleading because it says "Syntax error", although it's just a warning and the compiler doesn't stop.
I think it should be in the manual because it could be confusing...

And I'm not sure if you can put a struct into an if-statement anyway. Maybe this warning/error should stop the compiler. Maybe it was even meant to?


Happens with 7.85 and 8.00.5b.

Re: Syntax error:Can't go to FALSEGOTO:STRUCT@20::. [Re: Lukas] #331653
07/05/10 16:06
07/05/10 16:06
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, this syntax error must stop the compiler, as the compiled code can not be correct. This will be implemented.

Re: Syntax error:Can't go to FALSEGOTO:STRUCT@20::. [Re: jcl] #331656
07/05/10 16:12
07/05/10 16:12
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline OP

Programmer
Lukas  Offline OP

Programmer

Joined: May 2007
Posts: 2,043
Germany
Ok, thanks.


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1