JuliaIO / BSON.jl

Other
158 stars 39 forks source link

Store PkgId for packages? #119

Closed chengchingwen closed 1 year ago

chengchingwen commented 1 year ago

Currently the if a package A is imported in another package B without been exported. When loading the object created with B but containing object from A, it cannot resolve the A is inside B and result in a UndefVarError: A not defined. If we store the PkgId of A instead, we should be able to use Base.loaded_modules to find the correct module A.