Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: RE: Bug in comment - and comment on comment


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Bug in comment - and comment on comment
Date   Tue, 21 Sep 2010 12:21:57 +0200

<>

*************
scatter weight mpg /* [fw=price]  /* 
   */ */ , ms(oh)
*************


does yield the desired result...


HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Dienstag, 21. September 2010 12:18
To: [email protected]
Subject: st: RE: Bug in comment - and comment on comment


<>

I do not get your complaint! You opened two of those comments, and closed
only one. The output you get matches your input...


HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Allan Reese
(Cefas)
Sent: Dienstag, 21. September 2010 11:43
To: [email protected]
Cc: Stata Technical Support
Subject: st: Bug in comment - and comment on comment

Just found this in V10, so try it in other versions.  It's so blatant!

I have a long complex scatterplot command in a DO file, using /* */ to
ignore line ends.  
With the auto data, put this in a DO file.

scatter weight mpg [fw=price]  /* 
   */ , ms(oh)
di "here"

To see the graph with standard size markers, insert another
start-comment

scatter weight mpg /* [fw=price]  /* 
   */ , ms(oh)
di "here"

And no output!  But /* inside /* */ should be ignored.  "What appears
inside /* */ is ignored." (help comment).

-------
/* */ has another advantage I'd not noticed before.  When a command
extends over several lines and you want to comment it out of the DO
file, just add * to the first line and all following lines also start *
so are comments.

* scatter ... /*
  */ ... /*
  */ etc 


R Allan Reese
Senior statistician, Cefas
The Nothe, Weymouth DT4 8UB 

Tel: +44 (0)1305 206614 -direct
Fax: +44 (0)1305 206601 

www.cefas.co.uk 



****************************************************************************
*******
This email and any attachments are intended for the named recipient only.
Its unauthorised use, distribution, disclosure, storage or copying is not
permitted.  If you have received it in error, please destroy all copies and
notify the sender.  In messages of a non-business nature, the views and
opinions expressed are the author's own and do not necessarily reflect those
of the organisation from which it is sent.  All emails may be subject to
monitoring.
****************************************************************************
*******


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

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

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index