Re: enum

From: Masaharu Goto (gotom@hpyiddq.jpn.hp.com)
Date: Tue Mar 31 1998 - 01:47:28 MEST


Rutger,

You can do it either by typing everything in one line,

 root[0] enum OTTMessageTypes { kMESS_START = 10001,kMESS_STOP };

or enclosing enum in { }

 root[0] { enum OTTMessageTypes {
 end with '}'> kMESS_START = 10001,
 end with '}'> kMESS_STOP 
 end with '}'> }; }

You can split interactive command in multiple lines only if you enclose
entire statements between { }.

Masaharu Goto

> Hi ROOTERS,
> 
> In an interactive ROOT session (or in a macro) I want to declare some
> enums:
> 
> enum OTTMessageTypes {
>   kMESS_START = 10001,    // Start client
>   kMESS_STOP              // Stop client
> };
> 
> i get the error message:
> 
> Error: No memory for static fgIsA\0\ffffffff  FILE:/var/tmp/aaaa23601 
> LINE:1
> Error: kMESS_STOP Missing ';' FILE:/var/tmp/aaaa23601 LINE:5
> 
> Am I doing something wrong, os isn't it possible to use the enumeration
> type?
> 
> Rutger van der Eijk
> 
> 
> 



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