Streaming library

Denis Koroskin 2korden at gmail.com
Wed Oct 13 15:42:14 PDT 2010


On Thu, 14 Oct 2010 02:38:11 +0400, Sean Kelly <sean at invisibleduck.org>  
wrote:

> Denis Koroskin Wrote:
>>
>> I prefer ubyte[] because that helps GC (void arrays are scanned for
>> pointers).
>
> To be fair, the only thing that matters here is what the type is when  
> the initial "new" occurs.  After that, I think bits are preserved for  
> reallocations so if NO_SCAN is set then it will remain.

It also matter when I dup it. Even if you preallocate void[] with NO_SCAN  
dup'ing it will reset the flag.


More information about the Digitalmars-d mailing list