On Mon, 18 Feb 2013 02:42:50 -0500, Jacob Carlborg <[email protected]> wrote:

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.

Then maybe I didn't understand deadalnix's point, or maybe you have solved his problem? I don't know enough about your library.


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.

If there isn't a problem, then we don't need a solution. But if there is a problem, we may need something like this.

-Steve

Reply via email to