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

Home » Public Forums » archive » Re: Simple bug in IDL 5.4 compiler under Win2000
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: Simple bug in IDL 5.4 compiler under Win2000 [message #27597 is a reply to message #27596] Thu, 25 October 2001 12:44 Go to previous messageGo to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
> "Joe Means" wrote in message news:3BD85C6F.8040606@orst.edu...
>> This looks like a simple bug in the IDL 5.4 compiler under Windows2000.
>> If others confirm this, then RSI you may want to take note. Perhaps it
>> is fixed in 5.5 which I cannot afford yet.
>>
>> PRO Showbug
>>
>> numAll1Rets = 6
>> segmentT = 2d
>>
>> distancesT = segmentT*(Dindgen(numAll1Rets-2)+1d)
>>
>> distancesT = segmentT*(1d+Dindgen(numAll1Rets-2))
>> ;This second statement generates a compile error:
>> ;%Syntax error.
>>
>> Return
>> End

"Rick Towler" <rtowler@u.washington.edu> wrote in message
news:9r9nld$26e6$1@nntp6.u.washington.edu...
> Bug? I don't know.
>
> But I can confirm that as written, I get the same error in IDL 5.4 and
> 5.5(beta) on Win2k and in IDL 5.3 and 5.4.1 on Solaris (sunos sparc).
>
> FWIW, if you put spaces around your "+" you don't get the error:
>
> -Rick

Right, and that would be because, for example, the constant 1d+3 means
1*10^3, double precision. 1d+D... is just not allowed. Rick's suggestion is
good, or if you prefer:

distancesT = segmentT*(1d0+Dindgen(numAll1Rets-2))

distancesT = segmentT*((1d)+Dindgen(numAll1Rets-2))

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 5.5 jpeg and tiff
Next Topic: How-to? color png

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

Current Time: Wed Oct 08 19:59:17 PDT 2025

Total time taken to generate the page: 0.00450 seconds