runtime static arrays

Timon Gehr timon.gehr at gmx.ch
Wed Nov 21 09:09:01 PST 2012


On 11/20/2012 11:56 PM, Jonathan M Davis wrote:
> ...
> clearly, as if with static arrays, you'd have to be careful with slices being
> passed around, since they're not owned by the GC. And I'm not sure what would
> happen if you were foolish enough to try and append to them.
> ...

It works as expected. A new GC-managed slice is created.


More information about the Digitalmars-d-learn mailing list