comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Scary bug with array assignment
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Scary bug with array assignment [message #89259 is a reply to message #89258] Sun, 10 August 2014 12:41 Go to previous message
Paddy Leahy is currently offline  Paddy Leahy
Messages: 7
Registered: August 2013
Junior Member
On Sunday, August 10, 2014 8:25:51 PM UTC+1, Fabien wrote:
> On 10.08.2014 20:57, Paddy Leahy wrote:
>
>> Is there a big hole in my understanding of IDL array assignment, or is this a ghastly bug?
>
>
>
> The problem is not the assignment, it is the "+="
>
>
>
> In your example, if you transform:
>
>
>
> IDL> for jj=0,2 do sum[0,jj] += data[*,jj]
>
>
>
> into what it really is, i.e:
>
>
>
> IDL> for jj=0,2 do sum[0,jj] = sum[0,jj] + data[*,jj]
>
>
>
> it may explain your problem.
>
>
>
> Cheers,
>
>
>
> Fabien

aha! That makes sense. Thanks!
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: cgContour with different clipping
Next Topic: How to assign command line arguments to variables in another class

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 16:17:44 PDT 2025

Total time taken to generate the page: 1.08829 seconds