Orange - Free from D1/Tango
Steven Schveighoffer
schveiguy at yahoo.com
Mon Feb 18 06:32:48 PST 2013
On Mon, 18 Feb 2013 02:42:50 -0500, Jacob Carlborg <doob at me.com> 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
More information about the Digitalmars-d
mailing list