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

Home » Public Forums » archive » Re: V8.2 compilation error, works in V8.1
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: V8.2 compilation error, works in V8.1 [message #80390] Thu, 07 June 2012 10:19 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
For completeness, I note that the differences between V8.2 and V8.1 also occur (not unexpectedly) with lists.

IDL> b = list('header',0)
IDL> n = [1]
IDL> t = b.get(position=n)
IDL> help,t
In V8.1
T LONG = 0
But in V8.2
T LIST <ID=6 NELEMENTS=1>

Lajos pointed out that this change made the behavior consistent with subscripting an array with a one element array vs. with a scalar. But whereas it is often doesn't matter whether one has a scalar or a one element array, it will always make a difference when code that used to return a scalar integer now returns a list data type.

On Friday, June 1, 2012 1:57:08 PM UTC-4, wlandsman wrote:
> Lajos, Mike
>
> Thanks for the IDL_Object suggestion -- that seems like the simplest fix.
>
> Here's another IDL 8.2 change that is giving us compilation errors:
>
> IDL> print,!version
> { x86_64 linux unix linux 8.1 Mar 9 2011 64 64}
> IDL> x = HASH('key1',1,'key2',2)
> IDL> y = ['key1']
> IDL> help,x[y]
> <Expression> LONG = 1
>
> IDL> print,!version
> { x86_64 linux unix linux 8.2 Apr 10 2012 64 64}
> IDL> x = HASH('key1',1,'key2',2)
> IDL> y = ['key1']
> IDL> help,x[y]
> <Expression> HASH <ID=8 NELEMENTS=1>
>
> In this case, I think the V8.1 interpretation makes more sense. --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DEM extraction
Next Topic: OBJ_NEW: Infinite or invalid (NaN) operands not allowed. IDL 7 vs 8 discrepancy?

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

Current Time: Wed Oct 08 15:19:58 PDT 2025

Total time taken to generate the page: 0.00492 seconds