On Sat, Aug 16, 2025 at 03:24:55PM +0000, Brother Bill via Digitalmars-d-learn 
wrote:
[...]
> So a good D developer should not store an invalid pointer address into
> a pointer, with the single exception of storing a pointer address just
> past a slice or array.

Where does it say this in the spec?  Because this is wrong.

D arrays carry length with them; they do not rely on pointers pointing
past the allocated memory region.


T

-- 
The diminished 7th chord is the most flexible and fear-instilling chord. Use it 
often, use it unsparingly, to subdue your listeners into submission!
  • 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
                • ... Steven Schveighoffer via Digitalmars-d-learn
                • ... monkyyy via Digitalmars-d-learn
            • ... 0xEAB via Digitalmars-d-learn

Reply via email to