Editions Ideas
Walter Bright
newshound2 at digitalmars.com
Sun Dec 14 20:23:51 UTC 2025
On 12/14/2025 3:44 AM, Paul Backus wrote:
> We can (and should) improve memory safety by closing holes in @safe. For
> example, instead of using -preview=dip1000 we can simply forbid @safe code from
> taking the address of a stack-allocated variable (passing by `ref` is fine though).
Then you cannot have arrays on the stack, which are a highly useful construct (I
use them all the time).
More information about the Digitalmars-d
mailing list