malloc in core.memory.GC

Sean Kelly sean at invisibleduck.org
Sun Apr 8 22:48:53 PDT 2012


On Apr 8, 2012, at 3:42 PM, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:

> On 4/8/12 5:33 PM, Sean Kelly wrote:
>> ba is a BlockAttr bit field.
> 
> Yah. The question was how can I retrieve a type's "native" bit field, i.e. NO_SCAN for int, FINALIZE for class objects, etc.

getAttr for allocated blocks, as I'm sure you know. But there's no single field in TypeInfo that has the bitfield. And one of the flags in TypeInfo is backwards of what you'd expect. Really, I'd like to see all TypeInfo generated by template code in druntime. 


More information about the Digitalmars-d mailing list