On Wed, 13 May 2015, Sven Schreiber wrote:
a new thingy:
<hansl>
function void scheck (int a, string *s)
printf "%s\n", s
end function
string hey = "ho"
scheck(2, &hey)
</hansl>
produces:
<output>
gretl-Version 1.10.90cvs
Aktuelle Sitzung: 2015-05-13 09:38
? function void scheck (int a, string *s)
> function void scheck (int a, string *s)
Unrecognized data type 'string *'
Fehler bei Skriptausführung: Stopp
> function void scheck (int a, string *s)
</output>
Apart from the untranslated error message (could by my own fault)
No, it wasn't your fault -- but I've now marked that for translation
and committed the revised .po files to CVS.
apparently gretl doesn't accept strings to be passed in pointer
form? Is
this deliberate? AFAICS the docs with respect to pointers just talk
about function arguments in general, not just scalars and matrices.
What we say is (Guide, chapter 13), "Each of the type-specifiers,
with the exception of list and string, may be modified by prepending
an asterisk to the associated parameter name" to get a pointerized
version.
Allin