On Tuesday, 15 November 2022 at 03:18:17 UTC, Siarhei Siamashka wrote:
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?

Great! This should be a builtin feature!

I just checked the DIP list and #1000 is marked superseded. Any idea what supersedes it?

Reply via email to