THRIFT-827. ocaml: OCaml generator to take default values into account
authorBryan Duxbury <bryanduxbury@apache.org>
Thu, 12 Aug 2010 23:37:47 +0000 (23:37 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Thu, 12 Aug 2010 23:37:47 +0000 (23:37 +0000)
commit66c334792b1148f7eec8af923b5d90b29a89201e
treeb3da52a7dfba27dc56a3643322a59d8bab2faef2
parentcf8fc15fa083d4111886b304e287e9811fe1b9c0
THRIFT-827. ocaml: OCaml generator to take default values into account

A patch to the OCaml generator which uses default values defined in the .thrift file to initialize the members of the generated class.

Patch: Lev Walkin

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985041 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_ocaml_generator.cc