From: Travis O. <oli...@ie...> - 2006-08-22 19:15:42
|
Sebastian Haase wrote: > Hi, > probably related to this is that > arr[2].real is read-only ... > > I noticed that you cannot assign > to arr[2].real : > No, that's unrelated. The problem is that arr[2] is a scalar and so it is immutable. When an array scalar is created you get a *copy* of the data. Setting it would not have the effect you imagine as the original data would go unchanged. The only exception to this is the array of type "void" which *does not* copy the data. -Travis |