[protobuf] compound message allows colon

2011-02-18 Thread naderp
Hi,

Given the following .proto definition:

message person {
   required string name = 1;
   required int32 id = 2;
}

I noticed the following message syntax is valid:

person: {
   name: fred
   id: 3
}

i.e., the generated parser will quite happily accept a colon after the
compound message name (person: in this case).

Is this a bug or a feature?

Cheers

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



[protobuf] Visual Studio Visualizer for Repeated Messages

2010-01-18 Thread naderp
Hi

Back in 2.0.3 I was able to visualise repeated messages under the VS C+
+ 2008 debugger. In 2.2.0 they are no longer inspectable.

Can anyone shed any light on this or maybe submit a visualiser?

Thanks
-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to proto...@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.




Message type scope resolution

2009-07-29 Thread naderp

Hi,

Does the protocol buffer language have a mechanism for resolving types
across scopes. Eg, given

message foo {
message X {}

message bar {
message X{}

message abc {
message foo:X--- This is not legal, but how
do you do it?

}
}
}

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