Actual lifetime of static array slices?
Siarhei Siamashka
siarhei.siamashka at gmail.com
Tue Nov 15 03:18:17 UTC 2022
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?
More information about the Digitalmars-d-learn
mailing list