Open BambOoxX opened 2 years ago
The current behavior for CompositeKind data is https://github.com/JuliaIO/MAT.jl/blob/355bd1a901730ad5713b3283f6ec66603c72dfd9/src/MAT_HDF5.jl#L529-L536
CompositeKind
however, there are issues with the isbits(s) test, reported in #162,#143 or with simple user types such as
isbits(s)
struct MyType field1::Int64 field2::Int64 end
While these types are clearly isbitstypes, I do not see a reason to not allow their conversion the equivalent matlab struct. Given https://github.com/JuliaIO/MAT.jl/blob/355bd1a901730ad5713b3283f6ec66603c72dfd9/src/MAT_HDF5.jl#L535 The requirement seems more to be that fieldcount(T) > 0, regardless of the actual bits type.
isbitstype
fieldcount(T) > 0
Can someone confirm this ?
Bump ?
The current behavior for
CompositeKind
data is https://github.com/JuliaIO/MAT.jl/blob/355bd1a901730ad5713b3283f6ec66603c72dfd9/src/MAT_HDF5.jl#L529-L536however, there are issues with the
isbits(s)
test, reported in #162,#143 or with simple user types such asWhile these types are clearly
isbitstype
s, I do not see a reason to not allow their conversion the equivalent matlab struct. Given https://github.com/JuliaIO/MAT.jl/blob/355bd1a901730ad5713b3283f6ec66603c72dfd9/src/MAT_HDF5.jl#L535 The requirement seems more to be thatfieldcount(T) > 0
, regardless of the actual bits type.Can someone confirm this ?