[ROOT] char initialization within CINT

From: Henrique de M. J. Barbosa - mestrado (hbarbosa@ifi.unicamp.br)
Date: Fri Feb 22 2002 - 22:46:11 MET


Hello people,

I'm getting some strange results when I try to initialize twice the same
char variable within CINT. Check this:

	root [3] char test[] = " LONGITUDINAL SHOWER DEVELOP"
	root [4] test
-->	(char* 0x86cf3b0)" LONGITUDINAL SHOWER DEVELOP"
	root [5] char test[] = " LONGITUDINAL SHOWER DEVELOP"
	root [6] test
-->	(char* 0x86cf3b0)"°LONGITUDINAL SHOWER DEVELOP"


Why the first character in the string t changes when I initialize/define
it the second time? I'm missing something or is this a bug?

Oh, I'm using root3.02.07 with RedHat7

thanks
henrique
****************************************
State University at Campinas - BRASIL
"Gleb Wathagin" Physics Institute
Department of Cosmic Rays and Chronology

Henrique Barbosa      The Pierre Auger
PhD Student             Observatory
****************************************



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET