On Tuesday, 11 January 2022 at 14:54:51 UTC, Paul Backus wrote:
..
If you compile with -preview=dip1000, the compiler will
actually keep track of which pointers point to stack memory,
and will allow your original code. But -preview=dip1000 is
still somewhat experimental, and the documentation for it is
pretty sparse, so you may have an easier time just working
around the limitations of the default safety checks.
Thanks. Appreciate the explanation :-)
In the end though, correct code should just compile.
I shouldn't need a 'work around' :-(