shared array?

Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 11 16:29:05 PDT 2015


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.



More information about the Digitalmars-d-learn mailing list