On Friday, 11 September 2015 at 21:58:28 UTC, Adam D. Ruppe wrote:
On Friday, 11 September 2015 at 21:48:14 UTC, Prudence wrote:
Oh really?!?! I thought slicing used the GC? Is this a recent development or always been that way?

Always been that way. A D slice is just a C pointer + length packed together. A slice simply increments the pointer and/or decrements the length - no allocation needed. (btw the garbage collector is actually pretty nice, why are you avoiding it anyway?)

Seems to be quite a lot of FUD wrt use of standard library and GC, which means also perhaps we don't communicate this point very well as a community. Making Phobos GC-optional perhaps is an ultimate answer. But people seem to think that you're back to C without the GC.

  • Re: shared array? Kagamin via Digitalmars-d-learn
    • Re: shared array? Prudence via Digitalmars-d-learn
      • Re: shared array? Kagamin via Digitalmars-d-learn
        • Re: shared array... Prudence via Digitalmars-d-learn
          • Re: shared a... Adam D. Ruppe via Digitalmars-d-learn
            • Re: sha... Prudence via Digitalmars-d-learn
              • Re:... Adam D. Ruppe via Digitalmars-d-learn
              • Re:... Prudence via Digitalmars-d-learn
              • Re:... Adam D. Ruppe via Digitalmars-d-learn
              • Re:... Laeeth Isharc via Digitalmars-d-learn
              • Re:... Jonathan M Davis via Digitalmars-d-learn
              • Re:... Prudence via Digitalmars-d-learn
              • Re:... Laeeth Isharc via Digitalmars-d-learn
              • Re:... Adam D. Ruppe via Digitalmars-d-learn
              • Re:... Adam D. Ruppe via Digitalmars-d-learn
              • Re:... Laeeth Isharc via Digitalmars-d-learn
              • Re:... Jonathan M Davis via Digitalmars-d-learn
              • Re:... ponce via Digitalmars-d-learn
              • Re:... Ola Fosheim Grøstad via Digitalmars-d-learn
              • Re:... ponce via Digitalmars-d-learn

Reply via email to