Thanks. I have not gotten used to the existence of the hansel primer.  

The statement in the user guide is not conclusive given that bundles are not listed and yet can be passed as pointers. 

One more silly question, why are lists and strings excluded? (This is not important. Just curious.) 

Logan 


Sent from my T-Mobile 4G LTE Device


-------- Original message --------
From: oleg_komashko@ukr.net
Date:04/30/2014 5:25 AM (GMT-06:00)
To: Gretl list
Cc: gretl-users@lists.wfu.edu
Subject: Re: [Gretl-users] String pointer?

Hansl primer, p. 35:

Each of the type-specifiers, with the exception of list and string, may be modified by prepending
an asterisk to the associated parameter name, as in
function scalar myfunc (matrix *y)


--- Оригінальне повідомлення ---
Від кого: "Logan Kelly" <logan.kelly@uwrf.edu>
Дата: 30 квітня 2014, 03:52:00

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)

_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
!