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

Home » Public Forums » archive » structure references
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: structure references [message #86754 is a reply to message #86752] Sun, 01 December 2013 11:46 Go to previous messageGo to previous message
spluque is currently offline  spluque
Messages: 33
Registered: September 2013
Member
On Sun, 1 Dec 2013 12:38:34 -0700,
David Fanning <news@idlcoyote.com> wrote:

> Seb writes:
>> While trying to set all elements of a structure to a value, I read
>> http://www.exelisvis.com/docs/Structure_References.html and it seems
>> this is not possible with a simple operation like:

>> x={a:double(0), b:double(0)} x.(*)=20

>> Is writing a loop over the tags the only way?

> If all elements of your structure are the same data type, why aren't
> you using an array?

I'd like to have easier access to the elements of such array. It would
make life much simpler to be able to call a particular element by name
(e.g. tag) than by array index. Several routines need to access to
these data, so using an array index for each element soon makes code
hard to read.

Thanks,

--
Seb
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading ERDAS IMAGINE
Next Topic: Multiple color plots, same color bar

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

Current Time: Fri Oct 10 03:59:45 PDT 2025

Total time taken to generate the page: 0.07983 seconds