shared array?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 11 06:12:12 PDT 2015


On Friday, 11 September 2015 at 04:28:52 UTC, Prudence wrote:
> I thought about that but then I have to rely on the GC for some 
> simple things. Doesn't seem like the right way to go.

Since it is static, it will never be collected anyway, so you 
could just use it and it'll work for convenience and probably 
lose nothing, or very trivially write an append function that 
uses any scheme you want instead of doing ~= on it without even 
worrying about freeing it.


More information about the Digitalmars-d-learn mailing list