Statalist The Stata Listserver


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

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


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

Perhaps it's not deep at all. 

If // means ignore the rest of the physical 
line, then Stata just doesn't see any ; delimiter 
you add to the end of the line as such. 

It's just another character. 

Otherwise put, suppose you write 

#delimit ; 
// punctuation may include : ; , ! ? ; 

Is Stata expected to act on both semi-colons or 
just the end one? A rule that some characters 
are _forbidden_ within comments would be most 
unStataish. Comments should be your own space. 

If that's the diagnosis, then // is incompatible
with #delimit ;

-- and that's not a bug or a misfeature or even a 
limitation. It's just a fact of life. 

Someone may have a better story. 

Nick 
[email protected] 

Nick Cox
 
> You're right. 
> 
> I can't explain it. It's deep
> or it's a bug. I'll bet it's deep because
> my own rules say that you shouldn't shout "bug"
> unless certain. 
> 
> Nick 
> [email protected] 
> 
> Dimitriy V. Masterov
>  
> > Nick Cox <[email protected]> wrote:
> > > The comment is a (logical) line too. It needs a delimiter.
> > 
> > For me
> > 
> > // comment1
> > 
> > is fine, while
> > 
> > // comment1;
> > // comment2;
> > pwd;
> > 
> > produces the same error.

*
*   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