Re: New enum values

2009-06-24 Thread Kenton Varda
It will be treated like an unknown field.  In C++ or Java, the value goes
into the UnknownFieldSet, so if you then serialize the message, it will
still be there.  In Python it will just be discarded.

On Wed, Jun 24, 2009 at 2:56 AM, Stuart Johnson  wrote:

>
> If a new enum value had been added to a enum type, and it's being
> deserialised by an application that is not yet aware of the new enum
> value, what should happen?
>
> Should the enum value be null, or should the deserialisation abort?
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



New enum values

2009-06-24 Thread Stuart Johnson

If a new enum value had been added to a enum type, and it's being 
deserialised by an application that is not yet aware of the new enum 
value, what should happen?

Should the enum value be null, or should the deserialisation abort?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---