Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: undocumented command *


From   David Kantor <[email protected]>
To   [email protected]
Subject   Re: st: undocumented command *
Date   Sat, 27 Sep 2008 06:40:27 -0400

At 05:48 PM 9/26/2008, Gabi wrote:
Right, * is a comment marker, but should it be used?
[...]
This brings up a noteworthy phenomenon. The allowing of * to introduce a comment at the start of a line means that
*/
is a comment -- which means that you can have unbalanced /* */ pairs. This has happened to me on a few occasions.

/*
Here is some comment text.
*/

*/

----
The second */ was an editing error, but has no ill effect. It has no effect at all unless there is another /* above, to balance it as a (nesting) comment delimiter.

I just thought that is worth noting.
--David

*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index