Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: Comment oddity with #delimit ;

From (Brendan Halpin)
Subject   st: Comment oddity with #delimit ;
Date   Thu, 14 Apr 2011 12:28:21 +0100

Consecutive comments can cause a problem when using semi-colons to

+- -----------------------------------------------------------------
#delimit ;
di "test one";

// Comment line one;
// Comment line two;

di "test two";

Do-ing this yeilds the following:

. do

. #delimit ;
delimiter now ;
. di "test one";
test one

. // Comment line one;
> // Comment line two;
unrecognized command:  / invalid command name

end of do-file


Semi-colons at the end of comments have no effect.
Dropping either of the comments resolves the problem.
Reverting to -#delimit cr- resolves the problem. 
Using C-style comments (/* ... */) resolves the problem.

This is Stata 11, under Linux.

Am I missing something or is this a bug?

Brendan Halpin,   Department of Sociology,   University of Limerick,   Ireland
Tel: w +353-61-213147  f +353-61-202569  h +353-61-338562;  Room F1-009 x 3147    ULSociology on Facebook:         twitter:@ULSociology
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index