[Gretl-devel] strange bug with loop and submatrixes
Riccardo (Jack) Lucchetti
r.lucchetti at univpm.it
Fri May 30 05:38:10 EDT 2008
On Fri, 30 May 2008, Stefano Balietti wrote:
> The operation of selection of submatrixes causes a seg-fault if
> performed within a loop.
Not quite. The problem exists, but is more subtle than that. For example,
if you substitute
loop for i=0..3
aa = getData( a, i)
aa
end loop
with
loop for i=0..3
aa = getData( a, i)
print aa
end loop
or with
loop for i=0..3
aa = getData( a, $i)
aa
end loop
your script works alright. I have no time to work on this today, but
clearly something funny's going on here. Thanks for spotting this.
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti at univpm.it
http://www.econ.univpm.it/lucchetti
More information about the Gretl-devel
mailing list