There are good reasons not to support inheritance and it would be a
design problem if it was; so it is likely not supported.
Typically if someone has the reflex to use inheritance, they actually
mean to do something else. So what is the exact use case you want to
address ?
-h
This.
Protobufs are basically pure data structures, with no behaviour, so
inheritance is basically meaningless. Protobuf has other mechanisms
for doing reuse.
--
Chris
So pity protobuf doesn't support inheritance, only because of this I
can't use it. Any forecasts, are creators going to add this feature?
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
You can still fake out inheritance with composition. Whatever your
library is that you've wrapped around, you can do this.
> 2. I need to have a grid structure, that may contain any type: String,
> int, double, etc. To do so I'd like to have a List<BasicType> as a raw
> in a grid, where BasicType is an ancestor for IntType, DoubleType,
> StringType, etc. I can't imagine implementing this elegantly without
> inheritance.
That's basically a union.
(http://code.google.com/apis/protocolbuffers/docs/techniques.html#union)
-a
--
Austin Ziegler • halos...@gmail.com • aus...@halostatue.ca
http://www.halostatue.ca/ • http://twitter.com/halostatue