I couldn't find an open issue for this frequently-noted problem, so I'm filing this. Feel free to close if there's an earlier one.
It's worth linking to https://groups.google.com/forum/#!topic/julia-users/6Z1kJ5LrSMU, where it was pointed out that "faking" a view as (A, R), where R is a CartesianRange, is currently the cleanest way to circumvent this problem (but can only handle the equivalent of Int/UnitRange/Colon indexes). Various solutions using Ptr have also been employed in the past, but of course those suffer from the standpoint of garbage-collection safety.
I couldn't find an open issue for this frequently-noted problem, so I'm filing this. Feel free to close if there's an earlier one.
It's worth linking to https://groups.google.com/forum/#!topic/julia-users/6Z1kJ5LrSMU, where it was pointed out that "faking" a view as
(A, R), whereRis aCartesianRange, is currently the cleanest way to circumvent this problem (but can only handle the equivalent ofInt/UnitRange/Colonindexes). Various solutions usingPtrhave also been employed in the past, but of course those suffer from the standpoint of garbage-collection safety.