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.

Bug Reports / Rem command/reserved word is not handled consistently

Author
Message
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 11th Jan 2011 13:20
The following code reports an error when compiled:



whereas the following doesn't (and seems to compile as expected):



I would expect both the above to compile - or both to fail. Why should an empty comment be treated differently from a non-empty one.

Similarly, the following reports an error (a different one this time because of the comma):



whereas the following doesn't:



In this case the second version really shouldn't compile at all - but it does.
sladeiw
14
Years of Service
User Offline
Joined: 16th May 2009
Location: UK
Posted: 11th Jan 2011 21:54
I would have thought they all should fail because (apart from any other syntax errors) there is no colon separating commands. Using ` for comments is an exception but I thought rem should be treated as a command and require a colon.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Jan 2011 00:41
So would I.

Login to post a reply

Server time is: 2024-04-24 02:34:30
Your offset time is: 2024-04-24 02:34:30