[ROOT] Enum in CINT

From: Anton Fokin (anton.fokin@smartquant.com)
Date: Mon Jul 02 2001 - 12:40:56 MEST


Hi,

it looks like I observe a problem with CINT enums

I have:

class TFinObject : public TNamed {

enum ETradeSignal {
  kSell = -1,
  kHold = 0,
  kBuy = 1
};

...

In a stand alone program printf("%d\n", TFinObject::kSell); gives -1 as
expected but in CINT the same printf gives 0.

Is it a bug or feature?

Regards,
Anton



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:51 MET