Hi Eric, > Is this a known limitation of Cint or a bug ? > I am using root 2.22.10 on SunOS It is limitation of C/C++ not Cint. Arrays in C/C++ are very controversial Victor "E. Anciant" wrote: > > here is a little test macro "test.C" : > > void test(Int_t **bidim) { > cout << bidim << endl; > cout << bidim[0] << endl; > cout << bidim[1] << endl; > cout << bidim[0][0] << endl; > } > > root [13] .L test.C > root [14] Int_t bidi[10][10] > root [15] bidi > (Int_t**)0x52bd68 > root [16] bidi[0] > (Int_t*)0x52bd68 > root [17] bidi[1] > (Int_t*)0x52bd90 > root [18] bidi[0][0] > (Int_t)0 > root [19] cout << bidi[0] << endl; > 0x52bd68 > root [20] test(bidi) > 0x52bd68 > 0 > 0 > > *** Break *** segmentation violation > Root > bidi[0] > (Int_t*)0x52bd68 > root [22] > > Is this a known limitation of Cint or a bug ? > I am using root 2.22.10 on SunOS > > -- > ----- Eric Anciant ------------ > DAPNIA/SPhN - Bat 703 - Orme des merisiers > CE-SACLAY - 91191 GIF-SUR-YVETTE Cedex - FRANCE > Office: (33 - 1) 69 08 22 47 fax: (33-1) 69 08 75 84 -- Victor M. Perevoztchikov perev@bnl.gov perev@vxcern.cern.ch Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000 tel office : 516-344-7894; fax 516-344-4206; home 516-345-2690
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET