--
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.
Well, doesn't it make sense to deploy the _source_ file of your
protocol buffer, not the language specific thing it is compiled into
(the *.cc,*.h or *.java) ? After all, this is the build process, and
deploying the *.h/*.cc is more complicated than the source file.
Often it is good to take a step back and think _why_ one would like to
have a specific feature. While in some cases there is a need for
forward declarations (e.g. cyclic dependencies in systems that don't
resolve these on compilation unit level), this is not the problem you
want to solve. Your problem is that you want to cut dependencies by
underspecifying the information not necessary for 'the other user'.
If you are indeed in that situation, that requires P1 and P2 not mess
with (or even know) each others' protocol buffers, then what you
actually mean to use are extensions. That way, P1 and P2 can work on
their part of the protocol buffers without even knowing the details of
the other. http://code.google.com/apis/protocolbuffers/docs/proto.html#extensions
In general it is impractical to have protocol buffers forward
declarations because you wouldn't be able to generate code for most of
the target languages (C++ could be made to work).
> To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.