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:
SetVirtualResolution(640, 480)
do
print("Input loop - click to exit")
Sync()
if GetPointerPressed() then exit // this is a comment
loop
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