Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
edyarchi
Newbie


Joined: 25 Feb 2003
Posts: 7
Location: Italy

PostPosted: Thu Feb 27, 2003 1:55 am   

commenting code
 
does it exist a simbol or a command to comment a line of code (like the REM command in DOS)?
it would be useful to disable parts of code, permitting to quikly reactivate them if it needs.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Feb 27, 2003 3:14 am   
 
I prefer to use #NOOP.

#NOOP #COMMAND Here

If you don't like the syntax error it generates then

#NOOP "#COMMAND Here"

Ton Diening
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Feb 27, 2003 3:33 am   
 
Also a ; at the start of a line turns the line into a comment and everything after a // at the end of a line is ignored as being a comment.

Kjata
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net