JuliaIO / BSON.jl

Other
158 stars 39 forks source link

Deserialization is restricted to the Main namespace? #49

Closed ablaom closed 5 years ago

ablaom commented 5 years ago

I am having problems deserialising BSON objects from within a package.

See this Julia discourse thread

ablaom commented 5 years ago

From src/ extensions.jl:

resolve(fs) = reduce((m, f) -> getfield(m, Symbol(f)), fs; init = Main
ablaom commented 5 years ago

Okay this looks like a duplicate of #25, to be resolved by PR #28