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.

  • Pointers - Is it... Brother Bill via Digitalmars-d-learn
    • Re: Pointer... H. S. Teoh via Digitalmars-d-learn
    • Re: Pointer... Brother Bill via Digitalmars-d-learn
      • Re: Poi... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Poi... H. S. Teoh via Digitalmars-d-learn
      • Re: Poi... Brother Bill via Digitalmars-d-learn
        • Re:... H. S. Teoh via Digitalmars-d-learn
        • Re:... Brother Bill via Digitalmars-d-learn
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
            • ... Brother Bill via Digitalmars-d-learn
              • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... monkyyy via Digitalmars-d-learn
                • ... Steven Schveighoffer via Digitalmars-d-learn
                • ... monkyyy via Digitalmars-d-learn

Reply via email to