Allin Cottrell schrieb:
On Sun, 21 Jan 2007, Sven Schreiber wrote:
> And while I'm at it, during function-debugging I often have to close and
> restart gretl because it starts reporting nonsense errors (that go away
> just by re-loading everything) after the first function error has
> occurred. I know that's a pretty vague bug report, but it seems that
> gretl may need to clean up its internals a little more after it
> encountered a function error...
OK, thanks for the tip, I'll try some experiments.
Here's an example script:
<script>
function test(void)
return ...
end function
test()
</script>
The first time you run it, gretl correctly complains about a syntax
error. The next time it wrongly complains about "You can't define a
function within a function", obviously because it is still "inside" the
function body, not having reached "end function" before.
HTH,
sven