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

Home » Public Forums » archive » gripe about 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
gripe about structures [message #70298] Wed, 31 March 2010 04:48
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
I wish there was a way to perform operations on multiple struct tags
at the same time... for example, I can do neither of these things:

IDL> a = {min:0d,max:0d}
IDL> a.([0,1]) = minmax(randomu(seed,100)*100) ;or some such
% Expression must be a scalar or 1 element array in this context:
<INT Array[2]>.

IDL> a = {pets, dog:'larry',n_dog:5,cat:'boots',n_cat:12}
IDL> b = {pets}
IDL> b.([1,3]) = a.([1,3])/2
% Expression must be a scalar or 1 element array in this context:
<INT Array[2]>.

Sigh...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: problem with output on PS device / TVREAD
Next Topic: IDL_PATH problems

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

Current Time: Wed Oct 08 19:26:21 PDT 2025

Total time taken to generate the page: 0.00517 seconds