[Issue 23175] -preview=in silently adds possible stack memory escape
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 16 01:11:18 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23175
Mathias LANG <pro.mathias.lang at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pro.mathias.lang at gmail.com
--- Comment #7 from Mathias LANG <pro.mathias.lang at gmail.com> ---
As was pointed out in the lengthy forum thread:
- `scope` now leads to stack allocation;
- `-preview=in` is supposed to make `in` means `scope const`;
So I don't see how turning on a switch that is supposed to make `in` have the
semantic of `scope` is "silently breaking code" ??
Hello, *the whole point of `-preview`* is to introduce potentially-breaking
changes!
This is working as intended.
--
More information about the Digitalmars-d-bugs
mailing list