Dynamic arrays, emplace and GC

Claude via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 5 06:48:46 PDT 2016


On Tuesday, 5 July 2016 at 12:43:14 UTC, ketmar wrote:
> On Tuesday, 5 July 2016 at 10:04:05 UTC, Claude wrote:
>> So here's my question: Is it normal???
>
> yes. `ubyte` arrays by definition cannot hold pointers, so GC 
> doesn't bother to scan 'em.

Ah ok. I tried using void[size] static array and it seems to work 
without having to use GC.addRange().


More information about the Digitalmars-d-learn mailing list