You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by Apache Wiki <wi...@apache.org> on 2010/06/21 16:24:38 UTC
[Thrift Wiki] Update of "Tutorial" by KevinKelley
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Thrift Wiki" for change notification.
The "Tutorial" page has been changed by KevinKelley.
http://wiki.apache.org/thrift/Tutorial?action=diff&rev1=7&rev2=8
--------------------------------------------------
- {{{
- #!/usr/local/bin/thrift --gen cpp --gen java --gen py --php --gen rb --gen perl --erl --xsd -r
+ {{{#!/usr/local/bin/thrift --gen cpp --gen java --gen py --php --gen rb --gen perl --erl --xsd -r
#
# Thrift Tutorial
# Mark Slee (mcslee@facebook.com)
@@ -69, +68 @@
/**
* You can define enums, which are just 32 bit integers. Values are optional
* and start at 1 if not supplied, C style again.
+ * ^ ThriftIDL page says "If no constant value is supplied,
+ * the value is either 0 for the first element, or one greater than the
+ * preceding value for any subsequent element" so I'm guessing that's a bug.
*/
enum Operation {
ADD = 1,