Orange - Free from D1/Tango
Jacob Carlborg
doob at me.com
Sun Feb 17 23:42:50 PST 2013
On 2013-02-18 04:22, Steven Schveighoffer wrote:
> Right, but in that case, you may have a common reference serialized
> several times. Not necessarily the end of the world.
No reference type should be serialized more than once. If it is, it's bug.
> Perhaps what we need is two things:
>
> 1. A UDA that indicates "this type is certified correct for serialization"
> 2. A flag to serializer somehow that indicates "only serialize types
> that are certified correct for serialization, and pure value types"
Hmm, I'm wondering if that's getting too complex.
> I would hate to (and have hated to) mark serializable types when it is a
> trivial type, just because it's used inside a serializable type.
Me too.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list