The MergeFrom semantics are clearly defined:  For primitive types the
values are replaced when set; for repeated types the values are
concatenated.

It would be a useful enhancement to support a second method:
MergeFromReplace – which would have symmetric behavior for primitive
as well as repeated types.  Instead of concatenating the array
elements – the array contents of the source (if set) – would replace
the array contents of the destination.

-- 
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.

Reply via email to