On Wed, Mar 16, 2011 at 12:17 PM, steph <[email protected]> wrote:
> I want to have a bool value default to true but I cant seem to make it > do that. As stated in the protocol buffer documentation bools default > to false. However since i'm able to set default values on types i want > to set the defautl value of my bool types to true. > > Here is what i've tried: > > optional bool getA = 1 [default = true]; > This first one should work. What did you observe when using this? > > optional bool getA = 1 [default = TRUE]; > > optional bool getA = 1 [default = 1]; > > none of these worked for me. How can i set the bool to default to > true? > > thanks, > steph > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
