The manual states that JuliaItemModel is constructed from a 1D Julia array, but the method currently silently accepts types that are not arrays, without producing a MethodError immediately (as i believe it should since the argument actually needs to be an array) only to then fail down the line. For example:
julia> JuliaItemModel(nothing)
QML.JuliaItemModelAllocated(Ptr{Nothing} @0x0000600003a95660)
I'm wondering if JuliaItemModel method should be restricted to work only with types which are AbstractArray?
Perhaps more insidiously, things that in principle are natural, such as
JuliaItemModel(Observable([1,2,3]))
are accepted, but fails down the line, without making the root cause clear.
The manual states that
JuliaItemModelis constructed from a 1D Julia array, but the method currently silently accepts types that are not arrays, without producing aMethodErrorimmediately (as i believe it should since the argument actually needs to be an array) only to then fail down the line. For example:I'm wondering if
JuliaItemModelmethod should be restricted to work only with types which areAbstractArray?Perhaps more insidiously, things that in principle are natural, such as
are accepted, but fails down the line, without making the root cause clear.