You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, thanks for this excellent package!
Do you plan on supporting uninitialized structs ? I'm thinking specifically of the non-isbits ones, which can contain #undef values such as :
julia>about(Ref{String}())
Base.RefValue{String} (mutable) (<:Ref{String}<:Any), occupies 8B.
ERROR: UndefRefError: access to undefined reference
Stacktrace:
[1] memorylayout(io::Base.TTY, value::Base.RefValue{String})
@ About ~/.julia/packages/About/52iMk/src/values.jl:78
[2] about(io::Base.TTY, value::Base.RefValue{String})
@ About ~/.julia/packages/About/52iMk/src/values.jl:43
[3] about(x::Base.RefValue{String})
@ About ~/.julia/packages/About/52iMk/src/About.jl:201
[4] top-level scope
@ REPL[12]:1
Similarly, for Memory :
julia>about(Memory{Any}(undef, 3))
3-element Memory{Any} (mutable) (<:DenseVector{Any}<:AbstractVector{Any}<:Any)
Memory footprint:24B directly (referencing 40B in total)
ERROR: Abstract type Any does not have a definite size.
Stacktrace:
[1] sizeof(x::Type)
@ Base ./essentials.jl:768
[2] memorylayout(io::Base.TTY, mem::Memory{Any})
@ About ~/.julia/packages/About/52iMk/src/values.jl:385
[3] about(io::Base.TTY, value::Memory{Any})
@ About ~/.julia/packages/About/52iMk/src/values.jl:43
[4] about(x::Memory{Any})
@ About ~/.julia/packages/About/52iMk/src/About.jl:201
[5] top-level scope
@ REPL[10]:1
The text was updated successfully, but these errors were encountered:
Hey there, thanks for this excellent package!
Do you plan on supporting uninitialized
struct
s ? I'm thinking specifically of the non-isbits
ones, which can contain#undef
values such as :Similarly, for
Memory
:The text was updated successfully, but these errors were encountered: