[Issue 10048] TypeInfo comparison allocates memory

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 10 07:20:06 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10048



--- Comment #2 from Martin Nowak <code at dawg.eu> 2013-05-10 07:20:04 PDT ---
(In reply to comment #1)
> Why is this a false positive? Thats exactly the behavior you want when
> reloading changed classes at runtime. You want the new reloaded class to take
> the place of the old one without anything breaking.

Because the classinfos might have different vtables and initializers, therefor
they should not compare equal. This becomes crucial if you have to deal with
both types at the same time.
If you want to hotswap an instance you have to serialize and reinstantiate it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list