-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Some wrapper types like AxisArray, NamedDImsArray and DimArray (and probably LabelledArray?) need to be the "outside" wrapper for, e.g. keeping the axis index accurate and dispatch for getindex methods.
This issue just came up on discourse:
https://discourse.julialang.org/t/multiple-inheritance-carry-over-members/58355/8
People kind of expect a DimArray to keep working after wrapping with other types. It could be useful to have a trait and a shared method here that allows rewrapping:
rewrap(f, A) and rewrap(f, A, I...) could be used in other array constructors to allow rewrapping where necessary.
isouterwrapper could indicate if an object is an outer wrapper type.
Metadata
Metadata
Assignees
Labels
No labels