Hello Rene and Henrique, Thank you for reporting this problem. I'll fix this in next release. Masaharu Goto >Date: Mon, 25 Feb 2002 07:44:42 +0000 >From: Rene Brun <Rene.Brun@cern.ch> >To: cint@pcroot.cern.ch >Subject: [CINT] [Fwd: [ROOT] char initialization within CINT] > >Hi Masa, > >This mail was posted to roottalk > >Rene >----------------------------------------------------------------------------- - -- >Date: Fri, 22 Feb 2002 18:46:11 -0300 (BRT) >From: "Henrique de M. J. Barbosa - mestrado" <hbarbosa@ifi.unicamp.br> >To: roottalk@pcroot.cern.ch >Subject: [ROOT] char initialization within CINT > > >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)"$B!<(BLONGITUDINAL 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:43 MET