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/29 11:20:04 UTC

[Thrift Wiki] Update of "Tutorial" by Nikhil Jindal

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 Nikhil Jindal.
The comment on this change is: Enum values start at 0 and not 1 as stated before.
http://wiki.apache.org/thrift/Tutorial?action=diff&rev1=8&rev2=9

--------------------------------------------------

   *              ^ 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.
+  *   PS: http://enel.ucalgary.ca/People/Norman/enel315_winter1997/enum_types/ states that if values are not supplied, they start at 0 and not 1.
   */
  enum Operation {
    ADD = 1,