Question to GC experts: NO_SCAN for a part of the block

Stanislav Blinov via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 6 06:43:32 PDT 2017


On Tuesday, 6 June 2017 at 13:29:32 UTC, Stanislav Blinov wrote:

> Structs, on the other hand, are another matter. Although, even 
> creating a block with BlkAttr.FINALIZE *and* passing the struct 
> typeinfo to GC.malloc() doesn't seem to compel it to run the 
> struct dtors on collect, which is weird, considering it does so 
> for a new'ed array of structs :\

Ah, but of course I forgot to .init, never mind.


More information about the Digitalmars-d mailing list