[Gretl-devel] bug which is new in 1.7.4

Sven Schreiber svetosch at gmx.net
Thu Apr 3 04:23:08 EDT 2008


Riccardo (Jack) Lucchetti schrieb:
> On Thu, 3 Apr 2008, Riccardo (Jack) Lucchetti wrote:
> 
>> On Wed, 2 Apr 2008, Allin Cottrell wrote:
>>
>>>> BTW, during debugging (using a bunch of 'funcerr' statements), I
>>>> stumbled over other quirks:
>>>>
>>>> 1) At some point I got an error saying "IF depth exceeded" or
>>>> something like that. Now I don't nest that many IF blocks, so I
>>>> guess this happened because I repeatedly interrupted functions
>>>> in the middle of IF blocks by using 'funcerr'. But that suggests
>>>> that some "stacks" (or whatever they're called) are not properly
>>>> cleaned up when a function exits with an error...
>>>
>>> Yes, I suppose that must be the case.
>>>
>>
>> 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>
> 
> 
>

So you're saying that gretl's parser should detect such syntax errors, 
right?

/sven



More information about the Gretl-devel mailing list