Maybe I was a bit unclear before. There is more code, but I only included
the error and an explanation of the code.
I have been able to isolate the problem so I now can deliver a self
contained example:
? function void tmpfunc(matrix *tmp1)
tmp1 = null
end function
? tmp2 = zeros(2,2)
Generated matrix tmp2
? print tmp2
tmp2 (2 x 2)
0 0
0 0
? tmpfunc(&tmp2)
? tmp2 = zeros(2,2)
Generated matrix tmp2
? print tmp2
'tmp2' is not the name of a variable
Error executing script: halting
print tmp2
So the problem is that I set a matrix reference to null. Maybe I should code
it in another way but I guess it is a bug anyway since the name can't be
used until the session has been restarted.
Best
Andreas
Den 08/03/10 19.32 skrev "Henrique Andrade" <henrique.coelho(a)gmail.com>
følgende:
Em 8 de março de 2010 Andreas <andreas.noack.jensen(a)econ.ku.dk>
escrveu:
> So here is my first mail to the list.
Welcome!
> The weird thing is the following. If I try to assign a zero
> matrix to beta in the console I get the this
>
> ? beta = zeros(3,3)
>
> Generated matrix beta
>
> ? beta
>
> command 'beta' not recognized
I'd tried the same here in my Mac and everything worked fine.
Best,
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users