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 #27668 is a reply to message #27521] Mon, 29 October 2001 09:43 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
Hi,

IDL regards 1d+ as a double constant. Try 'help, 1d+' or 'a=1d+'. Both
works. Try 'a=1d+x'. It gives a syntax error: a constant followed by a
variable. So this '1d+ is a double constant in IDL' syntax is weird.

regards,
Lajos Foldy


On 29 Oct 2001, William Thompson wrote:

> Joe Means <joe.means@orst.edu> writes:
>
>> Rick,
>> Regarding your question about whether this behavior is a bug, my
>> rationale for saying so is that it the offending statement contains no
>> incorrect IDL syntax that I can see.
>> Joe
>
> Actually, I would argue that writing a number as simply "1d" is incorrect
> syntax, or at least sloppy syntax. IDL lets you get away with it in most cases
> (obviously not here), but the number really should be written as "1d0".
>
> Sorry, I don't mean to come off as harsh.
>
> William Thompson
>
>
>> Rick Towler wrote:
>
>>> 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
>>>
>>>
>>> "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
>>>>
>
>> --
>> Joseph E. Means
>> Assistant Professor, joe.means@orst.edu
>> Department of Forest Science
>> Oregon State University
>> Corvallis, OR 97331-5752
>> 541-750-7351
>
>
[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: Sat Oct 11 10:12:32 PDT 2025

Total time taken to generate the page: 0.79981 seconds