Garbage collector collects live objects

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 9 13:15:16 PST 2014


On 12/9/14 3:24 PM, Ruslan Mullakhmetov wrote:
> On Tuesday, 9 December 2014 at 19:56:30 UTC, Steven Schveighoffer wrote:
>> On 12/9/14 12:40 PM, Ruslan Mullakhmetov wrote:
>>> On Tuesday, 9 December 2014 at 16:13:25 UTC, Dicebot wrote:
>>> i checked attributes for GC block holding this array:
>>>
>>> FINALIZE NO_SCAN NO_MOVE APPENDABLE NO_INTERIOR
>>>
>> That does not sound right at all. No block should ever have both
>> FINALIZE (reserved for objects only) and APPENDABLE (reserved for
>> arrays only).
>>
> here the piece of code i used to output this value
>
> http://pastebin.com/cQf9Nghp

I literally had to compile this for myself before I saw the error:

if(bi && k) => if(bi & k)

Though that doesn't explain all the issues you reported. I'm curious 
what the output is after that though...

-Steve


More information about the Digitalmars-d-learn mailing list