Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Awaiting verification] TIER 1 - Comments after IF THEN construct cause "compiler error"

Author
Message
AgentSam
12
Years of Service
User Offline
Joined: 14th Mar 2012
Location: Virtual Space
Posted: 23rd Nov 2012 18:53
What do you think about this compiler error...

It was first discovered over a year ago, and was later marked as "WONTFIX" on the AppGameKit issues list.

Here's a small code snippet to demonstrate:



When compiled using AppGameKit 1076, you will receive the message:
"COMPILER ERROR: IF THEN ELSE construct does not allow colon separators at line 6."

If you remove the comment, it will compile without error.

For further consideration:

A forum post, dated 22nd Aug 2011. reporting the same issue:
http://forum.thegamecreators.com/?m=forum_view&t=188136&b=41&msg=2247969#m2247969

An AppGameKit issues list entry, dated Dec 18, 2011, marked "WONTFIX":
http://code.google.com/p/agk/issues/detail?id=194

An AppGameKit issues list entry, dated Dec 24, 2011, marked "FIXED":
http://code.google.com/p/agk/issues/detail?id=205

In the last issue list comment Lee writes:
"Comments allowed for build 1077 but the community agreed that colon separation should not be allowed in IF THEN single line constructs to avoid confusion."

Ok... 1077 again?

Could someone confirm if the above code snippet compiles in the 108 beta series without error.

[Grumble]Quite a kludge this TIER1 language... full of clumsy "special cases".[/Grumble]

Cheers,
AgentSam - The grumpy old software engineer
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 23rd Nov 2012 19:56
It compiles and runs fine with v1.084, with or without a colon as well.

AgentSam
12
Years of Service
User Offline
Joined: 14th Mar 2012
Location: Virtual Space
Posted: 23rd Nov 2012 20:05
Thanks for verifying - and glad to hear it's fixed in the upcoming releases. (Although a very minor issue in itself, but then again, I am a hopeless perfectionist.)

Cheers,
AgentSam

Login to post a reply

Server time is: 2024-05-05 17:52:19
Your offset time is: 2024-05-05 17:52:19