Pointers - Is it safe to point to invalid memory?
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sat Aug 16 15:11:08 UTC 2025
On 17/08/2025 3:03 AM, Brother Bill wrote:
> I am grasping that even having a pointer pointing to an invalid memory
> address is a huge code smell.
Yes.
Why point the gun at your own foot?
Don't do that.
> But will it cause any undefined behavior
> merely having a pointer with an invalid memory address.
No.
More information about the Digitalmars-d-learn
mailing list