[Gretl-devel] bug which is new in 1.7.4
Sven Schreiber
svetosch at gmx.net
Sun Apr 6 16:16:09 EDT 2008
Allin Cottrell schrieb:
> On Thu, 3 Apr 2008, Riccardo (Jack) Lucchetti wrote:
>
>>> This probably isn't your case, but I remember I ran into this
>>> once, only to discover, after many swearwords, that I had and
>>> "if" without an "endif" somewhere.
>> tiny script exposing the problem:
>>
>> <script>
>> nulldata 10
>> a = 3
>> loop 33
>> if a>1
>> print a
>> end loop
>> </script>
>
> In CVS, we now have a guard against unmatched "if" for loops,
> user-defined functions, and entire scripts. Please report if
> anything seems to be wrong with this.
>
> We also try to ensure that the "if stack" gets destroyed on error.
>
If it's doable for "if" blocks, why not do it for all types of blocks,
like loop - end loop, function - end function, gmm - end gmm, mle - end
mle, and so on?
thanks,
sven
More information about the Gretl-devel
mailing list