assumeSafeAppend on slice of static array?

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 22 12:50:10 PDT 2014


H. S. Teoh:

> The question is, is there a way to take a slice of the static 
> array, set
> the length to zero, and append to it with ~= such that when it 
> runs out
> of space in the static buffer, it will reallocate a longer 
> array on the
> GC heap? Or is this a bad idea?

I suggested to add this to Phobos:
https://d.puremagic.com/issues/show_bug.cgi?id=8550

Bye,
bearophile


More information about the Digitalmars-d mailing list