Subject: Comments in MOOcode

From: Byron Montgomerie <[email-masked]>
Date: Tue, 11 May 1993 20:44:03 -0700

> It doesn't seem to me that there's any problem with just using `string 
> statements':
>
>		"This is a comment.";
>
>	Pavel
 
On that topic can one comment out code that uses string constants?  I can't
recall whether comments can contain double-quotes without an \.

ie.		"Is "this" a comment?";

Byron...

---

From: Pavel Curtis <[email-masked]>
Date: Tue, 11 May 1993 22:36:16 -0700

> Date:	Tue, 11 May 1993 20:44:03 -0700
> From:	Byron Montgomerie <[email-masked]>
> 

No, since these aren't really `comments' but rather instances of the more
general paradigm of using any expression as a statement (such as assignment
expressions), that isn't a legal statement.  You need to escape the quotes.  If
you want to `comment out' one or more lines of code, surround them by

		if (0) ... endif

and you won't have to worry about any embedded quotes.

	Pavel