Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isgeneric not defined when saving a function #171

Closed
cstjean opened this issue Jul 22, 2017 · 2 comments
Closed

isgeneric not defined when saving a function #171

cstjean opened this issue Jul 22, 2017 · 2 comments

Comments

@cstjean
Copy link

cstjean commented Jul 22, 2017

julia> using JLD

julia> JLD.save("tmp.jld", "id", identity)
ERROR: UndefVarError: isgeneric not defined
Stacktrace:
 [1] func2expr(::Function) at /Users/cedric/.julia/v0.6/JLD/src/JLD.jl:848

On this line. Error aside, wouldn't it be possible to save generic functions the same way Python does, by storing something like (:Base, :identity)?

@yuyichao
Copy link
Contributor

Dup of #57

@augustvanhout
Copy link

This one worked for me! https://discourse.julialang.org/t/save-variable/33986

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants