[protobuf] Re: Does proto3 allow recursion?

2016-04-02 Thread Zachary Deretsky
Thank you. I am slowly struggling with my first grpc project, cmake being 
part of the struggle.

On Friday, April 1, 2016 at 4:33:59 PM UTC-7, Josh Haberman wrote:
>
> The easiest way to find out is just to try. :)  Both of these examples 
> compile fine with proto3.
>
> On Monday, March 21, 2016 at 10:43:23 AM UTC-7, Zachary Deretsky wrote:
>>
>> Is recursion handled, for example:
>>
>> message Node {
>> string value = 1;
>> Node parent = 2;
>> message Child {
>>  string key = 1;
>>  Node child = 2;
>> }
>> repeated Child children = 3;
>> }
>>
>>
>> or
>>
>> message Node {
>> string value = 1;
>> Node parent = 2;
>> map children = 3;
>> }
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Re: Does proto3 allow recursion?

2016-04-01 Thread 'Josh Haberman' via Protocol Buffers
The easiest way to find out is just to try. :)  Both of these examples 
compile fine with proto3.

On Monday, March 21, 2016 at 10:43:23 AM UTC-7, Zachary Deretsky wrote:
>
> Is recursion handled, for example:
>
> message Node {
> string value = 1;
> Node parent = 2;
> message Child {
>  string key = 1;
>  Node child = 2;
> }
> repeated Child children = 3;
> }
>
>
> or
>
> message Node {
> string value = 1;
> Node parent = 2;
> map children = 3;
> }
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.