Page 1 of 1

C-style comments

Posted: Mon Oct 21, 2002 3:08 am
by Sophia
I noticed that the text files for RTC contain what would appear to be C-style comments, but are really just single-line comments marked by a /* combiation.

Support for true C-style comments (Everything after /* is a comment until a */ is found) would be nice.

the point being ?

Posted: Sat Mar 22, 2003 12:36 pm
by chiefy
Hi Sophia !

what is the actual point of these comments opposed to ;remarks ?

how do they differ ?

clarification

Posted: Sat Mar 22, 2003 12:40 pm
by chiefy
ooops my reply isn't too clear

lines in notepad edits that start ; have no effect on the compile

it seems to me that lines in notepad edits that start / are also ignored

so
both ; and / inform the compiler to read no further

Sophia what is the significance of / over ; ?

Re: clarification

Posted: Mon Mar 24, 2003 11:16 am
by George Gilbert
There is no difference.

The compiler works by reading each line in turn and interpreting it. When it encounters a / or ; at the start then it ignores the entire rest of the line.

Implicit in that is that comments don't need "closing" (as in C style comments), just a character at the start of the line to tell it the rest of it is a comment. In the examples however I've tended to close each comment - this however is purely force of habit and isn't needed ;-)