On 30/04/14 02:50, Logan Kelly wrote:

Hello,

 

Are pointers to strings allowed? (I am using 1.9.15cvs on Win7 64 bit) The following script:

 

function test(string *t)

    t="Hello World"

end function

string MyTestString

test(&MyTestString)

print MyTestString

 

yields the following error

 

gretl version 1.9.15cvs

Current session: 2014-04-29 19:46

 

? function test(string *t)

> function test(string *t)

Unrecognized data type 'string *'

 

Error executing script: halting

> function test(string *t)



Please, look at the Gretl users' guide:

"13.4 Function programming details

Variables versus pointers

Series, scalar, and matrix arguments to functions can be passed in two ways: “as they are”, or as
pointers."

There is no such a feature for strings.



--
Firma Arista
Ignacio Díaz-Emparanza
Zuzendaria/Director
ignacio.diaz-emparanza@ehu.es
94 6013732
EKONOMIA APLIKATUA III SAILA (EKONOMETRIA ETA ESTATISTIKA)/ DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU

Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013740 | F.: +34 946013754
www.ea3.ehu.es
ERNE! Baliteke mezu honen zatiren bat edo mezu osoa legez babestuta egotea. Mezuak badu bere hartzailea. Okerreko helbidera heldu bada (helbidea gaizki idatzi, transmisioak huts egin) eman abisu igorleari, korreo honi erantzunda. Kontuz! Mezua ez bada zuretzat, ez erabili, ez zabaldu beste inori, ez kopiatu eta ez baliatu.
¡ATENCIÓN! Este mensaje contiene información privilegiada o confidencial a la que sólo tiene derecho a acceder el destinatario. Si usted lo recibe por error le agradeceríamos que no hiciera uso de la información y que se pusiese en contacto con el remitente.

E-mail hau inprimatu baino lehen egiaztatu inprimatzeko beharra.
Antes de imprimir este e-mail piense bien si es necesario hacerlo.