On Fri, 7 Jul 2017, Summers, Peter wrote:
Hi Allin,
This sounds great, thanks for the heads-up.
I don't know if this is a high enough priority to try fixing
before then, but I've had an issue executing a Julia script from
within gretl. Disclosure: I only started trying to learn Julia
yesterday, so this may reflect my ignorance more than anything.
Anyway, the script is
<Julila>
2+2
f(n) = (n>1 ? f(n-1)+n : n)
f(50)
</Julila>
(I know there's a more efficient way to do the recursive function:
this was intended just as a test)
This runs fine in Atom/Juno/Julia. Running it from the Julia
script window in gretl, the script output window opens but is
empty -- no errors or anything.
Runs fine here via gretl, but (as you say) with no visible output,
since the program doesn't ask for any. Try instead:
<julia>
f(n) = (n>1 ? f(n-1)+n : n)
@printf "result = %f\n" f(50)
</julia>
(If I save your original as summers.jl and invoke
julia summers.jl
I don't see any output either.)
Allin