Statalist


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

Re: st: Stata tripping on braces


From   wgould@stata.com (William Gould, StataCorp LP)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Stata tripping on braces
Date   Mon, 28 Jul 2008 13:23:04 -0500

Gabi Huiber <ghuiber@gmail.com> reports, 

> It [Stata] trips here:
> 
>     . forvalues i=1/${mergecount} {
>     program error: code follows on the same line as open brace
>     r(198);

> I dispute that this is a program error. I think that Stata is at fault
> on this one. It reads the open brace after $, whose job is simply to
> frame the mergecount global name, as if it were the brace that foreach
> calls for, whose job is to frame the code that follows.

I agree.  We will get it fixed.

-- Bill
wgould@stata.com

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index