C-style comments

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

C-style comments

Post 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.
User avatar
chiefy
Big chief
Posts: 101
Joined: Thu Feb 27, 2003 12:50 am
Location: MIDDLESEX
Contact:

the point being ?

Post by chiefy »

Hi Sophia !

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

how do they differ ?
from your old mate
c h i e f y
global chiefy to yer old seadog maties
User avatar
chiefy
Big chief
Posts: 101
Joined: Thu Feb 27, 2003 12:50 am
Location: MIDDLESEX
Contact:

clarification

Post 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 ; ?
from your old mate
c h i e f y
global chiefy to yer old seadog maties
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Re: clarification

Post 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 ;-)
Post Reply