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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
digitaljams
Newbie


Joined: 02 Nov 2007
Posts: 9

PostPosted: Sat Oct 18, 2008 2:50 pm   

Remark Statement
 
Ok new to cmud/zmud. I've done some searching and aside from using #NOOP as a adhoc way of using remark statements, I've seen no formal way to do this. Having the ability to document your work, for yourself and others, is invaluable.

What are the pitfalls for using #NOOP as a remark statement and are there any other ways to to document your code without impact (I've seen other old posts in zmud about using the semicolon) ??

-Thanks
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Oct 18, 2008 5:23 pm   
 
Cmud supports using // at the start of a line to indicate comments. This is the recommended method, as it does not become part of the compiled script. Using #NOOP will add extra code to the compiled script and generally make things slower.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
digitaljams
Newbie


Joined: 02 Nov 2007
Posts: 9

PostPosted: Sat Oct 18, 2008 9:36 pm   
 
// Insert thanks below for answering problem

Thanks for the input, works like a champ.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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