Hi, some function programming issues/remarks:
1. Shouldn't the following work according to the example
"function series get_uhat_and_ess(series y, list xvars, scalar
*ess[null])" in the manual:
<script>
function void check(int myarg1, int myarg2[null])
print "yes"
end function
check(1)
</script>
But I get:
gretl-Version 1.9.2cvs
Aktuelle Sitzung: 2010-11-11 20:22
? function void check(int myarg1, int myarg2[null])
Syntax-Fehler in Befehlszeile
Fehler bei Skriptausführung: Stopp
function void check(int myarg1, int myarg2[null])
2. functions apparently cannot return bool or int (documented by running
the trivial ones below). Note that I'm fine with this if it's desired
behavior, but maybe it isn't...
<script>
function scalar hey3(void)
print "yes3"
end function
hey3()
function int hey2(void)
print "yes2"
end function
hey2()
function bool hey(void)
print "yes"
end function
hey()
</script>
thanks,
sven