Statalist The Stata Listserver


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

st: RE: mulitple comments using // and #d;


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: mulitple comments using // and #d;
Date   Fri, 1 Sep 2006 20:25:00 +0100

The comment is a (logical) line too. It needs a delimiter. 

I just can't work up this enthusiasm for ; as delimiters 
unless you are really a C or SAS programmer trapped in a Stata 
user's body. /// pretty much frees you of the need
to use ; , even if you do have lots of long lines. 

And variants on this question arise so frequently that 
it underlines the impression that ; is more difficult to 
use than plain old carriage returns. 

Nick 
[email protected] 

Dimitriy V. Masterov
 
> Does anyone understand why multiple "//" comments and using ";" as a
> delimiter fail? I am baffled.
> 
> Here's code that demonstrates the problem:
> 
> #delimit cr
> // comment1
> // comment2
> pwd
> 
> #delimit;
> // comment1
> pwd;
> 
> // comment1
> // comment2
> pwd;

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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