Re: new int*[10] problem fixed

From: $B8eF#!!@5<#(
Date: Mon Jun 23 1997 - 23:50:00 MEST


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



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