Re: new int*[10] problem fixed

=?ISO-2022-JP?B?GyRCOGVGIyEhQDU8IxsoQg==?= (MXJ02154@niftyserve.or.jp)
Tue, 24 Jun 1997 06:50:00 +0900


Hello Nick and Valery,

Concerned about the problem below,

int** a;
a = new int*[10];
for(int i=0;i<10;i++) a[i] = new int(i);
for(int i=0;i<10;i++) printf("%d\n",*a[i]);
for(int i=0;i<10;i++) delete a[i];

I need to update what is going on here. I fixed above bug and a couple of
other ones derives from that. In fact, not only the new operator was wrong
but other expressions like a[i] did not work well for pointer to pointer.
Now, I fixed them and sending the latest version to CERN.

I'm in process of fixing operator precedence issue reported by many people.

Masaharu Goto