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

Home » Public Forums » archive » Re: Q: Array of Structures
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: Q: Array of Structures [message #12055 is a reply to message #12052] Fri, 12 June 1998 00:00 Go to previous messageGo to previous message
Saeid.Zoonematkermani is currently offline  Saeid.Zoonematkermani
Messages: 6
Registered: December 1997
Junior Member
>
> An array must be a collection of identical "things". For
> example, if your anonymous structures were identical you
> would have no problem. (By "identical" I mean that they
> have the same fields and that those fields are defined
> in exactly the same way.) For example:
>
> a = { data:FltArr(10), name:'First Structure' }
> b = { data:FltArr(10), name:'Second Structure' }
> c = [a, b]
>

Hi David,

Thanks for the response. I think there is more to this problem than is
apparent at first. I believe that my structures are created identically.
It is the output of a complicated procedure. The structure is defined
inside the procedure and they should be the same each time. And just to
check this, I ran your example from above and here is the result:

IDL> a = { data:FltArr(10), name:'First Structure' }
IDL> b = { data:FltArr(10), name:'Second Structure' }
IDL> c = [a, b]
% Conflicting data structures: B,concatenation.
% Execution halted at: $MAIN$

Rather curious. I wonder if this is a MacOS version problem!

Cheers,

- Saeid

--
Saeid Zoonematkermani
Dept. of Physics & Astronomy
State University of New York
Stony Brook, NY 11794-3800

EMail: Saeid.Zoonematkermani@sunysb.edu
Voice: (+1) (516) 632-8237 Fax: (+1) (516) 632-8742
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: viewport events in widget_draw
Next Topic: From Bytes to Doubles, etc.

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

Current Time: Sun Oct 12 05:32:40 PDT 2025

Total time taken to generate the page: 0.71863 seconds