thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodolfo Ochoa <rodolfo.oc...@gmail.com>
Subject enum new feature
Date Mon, 22 Sep 2014 20:38:18 GMT
there is a "new feature" on current master for node, where the generated
enums are now bivalent (how you call it?),
for example:

ttypes.TPolicy = {
  '1' : 'NO_SYNC',
  'NO_SYNC' : 1,
  '2' : 'SYNC',
  'SYNC' : 2,
  '3' : 'WRITE_NO_SYNC',
  'WRITE_NO_SYNC' : 3
};

how you avoid this? I just want a simple enum:
ttypes.TPolicy = {
  'NO_SYNC' : 1,
  'SYNC' : 2,
  'WRITE_NO_SYNC' : 3
};



-- 
*Rod.O*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message