June 27, 2002 [BUG] Reference to array | ||||
|---|---|---|---|---|
| ||||
Hi,
here is another bug for Walter to chase <g>
int Array[10][3];
int main()
{
int (&ar)[3] = Array[2];
ar[2] = 10;
return 0;
}//main
ar should be a reference to a onedimensional array of 3 ints. This works
with MSVC and lint. Meanwhile I use the pointer method
int *ar=Array[2];
Regards,
Heinz
| ||||
July 01, 2002 Re: [BUG] Reference to array | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Heinz Saathoff | Ok, I got it! -Walter | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply