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

Home » Public Forums » archive » Singular arrays in structures...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Singular arrays in structures... [message #39912] Fri, 25 June 2004 12:51
tam is currently offline  tam
Messages: 48
Registered: February 2000
Member
I'm sure that this probably has come up before, but I just haven't
noticed it but every once in a while I run regression tests...

In IDL 5.2 if one starts with

x = {a:intarr(1),b:0}
y = replicate(a,10)

Then

y.a = intarr(10) works
y.a = intarr(1,10) fails

In IDL 5.6 the results are reversed, the second method works
while the first fails.

Does anyone have any workarounds that will handle
both cases or has this inconsistency perhaps been fixed
in later versions of IDL? I'd prefer not to have to
refer to the IDL version explicitly in the code.

Thanks,
Tom McGlynn
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Returning an array from a function
Next Topic: Re: Returning an array from a function

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

Current Time: Sat Oct 11 20:17:30 PDT 2025

Total time taken to generate the page: 0.24137 seconds