RE:Re: enum problem?

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Tue Aug 18 1998 - 13:19:00 MEST


Randovan,

Thank you for trying this. As you point out, second case should be an error.
Cint is not checking strictly. 

After that, we found out that the problem was some OS dependent description 
in Matt's header file.

Masaharu Goto

> Matt,
> 
> I'm sorry for being not able to resolve the problem, but I've never seen
> this kind of problem in any version. The enum works perfectly fine on my
> machine. 
> 
> I'll post this message to roottalk mailing group, asking if anybody has idea
.
> 
> Rooters, 
>  Does anybody have seen following problem reported by Matt Gerassimoff? When
> he has
> 
>   enum A { X, Y, Z };
> 
> he gets an error that ';' is missing. But this works fine on my machine.
> And when he has
> 
>   enum A { X, Y, Z; };
> 
> he gets expeced result. 
> 
> Masaharu Goto
Hello,

       I've tried the both versions and either of them worked fine with
ROOT 2.0.10 AIX 4.1.5. IMHO, the second one should produce a syntax
error...

See snapshot of my ROOT session:

  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   2.00/10      30 July 1998   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

CINT/ROOT C/C++ Interpreter version 5.13.66, July 24 1998
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] enum AA { aa, bb, cc };
root [1] enum BB { aaa, bbb, ccc; };
root [2] .q


Hope it helps

                Radovan

#=============================================================#
# Radovan Chytracek     Slovak Academy of Sciences            #
#                       Watsonova 47,Kosice,04001,            #
#                       Slovak Republic                       #
# phone: +42 95 633 2741-2 , ext. 156  fax : +42 95 633 6292  #
#===================#=========================================#
# Linux iii  is the #            chytrace@saske.sk            #
# best (0 0) choice #      http://www.saske.sk/~chytrace      #
#===ooO==U==Ooo=====#=========================================#



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:36 MET