compiler support added for precise GC
Jacob Carlborg
doob at me.com
Tue Apr 17 09:20:32 PDT 2012
On 2012-04-17 16:44, deadalnix wrote:
> I don't see any need for runtime reflection here.
>
> If a type is serialized, at some point it have to be given to the lib
No it doesn't. Not if if you serialize through a base class reference.
class Base { ... }
class Base : Sub { ... }
Base b = new Sub;
serialize(b);
The serializer will never no anything about "Sub". Of course it's
possible to register "Sub" with the serializer but that's what I'm
trying to avoid in the first place.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list