Hi,

I would like to do something like

f(x) = x+1
open("f.jld", "w") do file
    serialize(file, f)
end

then, close julia, open it again and do

open("f.jld", "r") do file
    f = deserialize(file)
end
f(1)

but that gives "ERROR: f not defined"


Is serialization supposed to be able to do this?
If yes, which is the right way to code it?

Thanks

Reply via email to