Open JoshuaLampert opened 1 year ago
dup of #316?
It isn't really the same issue? In #316 the autocomplete doesn't work for the Ptr{T} type, but it would work for struct T directly. In this issue, there is only the ":data" field in the struct. Way to the solution is probably quite different?
Currently, C
union
s andstruct
s containing aunion
are wrapped as a juliastruct
having one fielddata
with overwrittenBase.getproperty
andBase.setproperty!
functions, e.g.is wrapped as
This doesn' t allow to properly use
fieldnames
orpropertynames
(and similar functions) as they return(:data,)
(or similar) and not the actual fields you can access bygetproperty
. The problem came up in https://github.com/trixi-framework/P4est.jl/issues/72.cc @ranocha, @sloede