Editions Ideas

Walter Bright newshound2 at digitalmars.com
Sun Dec 14 07:06:51 UTC 2025


On 12/13/2025 6:51 AM, drug007 wrote:
> I'm interested. I haven't used dip1000, but I have the impression it is a 
> controversial feature leading to long-running debate. I don't have my own 
> opinion and I would be happy to receive more information in addition to the 
> rather poor documentation available.

It's entire purpose is simple - preventing a pointer from "escaping" a function 
that it is passed to. This is used to:

1. prevent a live pointer into an expired stack frame

2. prevent a live pointer into allocated memory that has been free'd


More information about the Digitalmars-d mailing list