On Tuesday, 15 November 2022 at 03:05:30 UTC, Elfstone wrote:
So the compiler detects escaping in foo() but not in bar(), this doesn't look right.

The compiler can detect it with -dip1000 command line option.

Is there a way to tell whether a slice is from a dynamic array or a static array?

For debugging purposes? Maybe find the stack boundaries and check if the address is in stack?

Reply via email to