Dynamic arrays are not.

Slices are.

A slice is a pointer + length pair; it requires no runtime infrastructure to manipulate.

A dynamic array, has slices that reference internal state in the GC which is where all the manipulation takes place (like appending).
  • BetterC unexpect... DLearner via Digitalmars-d-learn
    • Re: BetterC... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
    • Re: BetterC... areYouSureAboutThat via Digitalmars-d-learn
    • Re: BetterC... ryuukk_ via Digitalmars-d-learn
      • Re: Bet... DLearner via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to