Small glitch with character initializers in Root 2.21/03

From: O'NEEL Bruce (bruce.oneel@obs.unige.ch)
Date: Mon Feb 01 1999 - 12:29:25 MET


Hi,
  There seems to be a small glitch in Root 2.21/03 with character
initializers.  The two cases:

char msg[] = "warning";

and

char msg1[] = {"warning"};

seem to be dealt with differently.  I belive both are valid C but I
don't have a recent enough ARM to check if they are both still valid
in C++.  egcs 1.1.1 run with -Wall -pedantic seems content though.

Thanks.

cheers

bruce


isdcul7:RootDal 124> root
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   2.21/03   22 January 1999   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************
 
FreeType Engine v1.1 used to render TrueType fonts.
 
CINT/ROOT C/C++ Interpreter version 5.13.87, Jan 8 1999
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
 
Welcome to the ROOT tutorials
 
 
Type ".x demos.C" to get a toolbar from which to execute the demos
 
Type ".x demoshelp.C" to see the help window
 
root [0] char msg[] = "warning";  
root [1] msg
(char* 0x4ac628)"warning"
root [2] char msg1[] = {"warning"}
root [3] msg1                     
(char* 0x442a60)"(D*h"
root [4] 



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