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 #12054 is a reply to message #12052] Fri, 12 June 1998 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Saeid.Zoonematkermani@sunysb.edu writes:

> 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!

Oh, oh. Another one of those days. I *tested* this. I have the
file to prove it! But you are right, I can't reproduce it. :-(

I guess string lengths in structures have to be exactly the
same, too. Which surprises me and goes contrary to what happens,
for example, when you replicate named structures with the
REPLICATE command.

But, look. I just tried this:

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

But now, I try this:

a = { data:FltArr(10), name:'' }
b = a
c = [a, b]

No problem!

Very, very weird. I'll see if RSI can explain this. :-)

Cheers,

David
[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: Mon Dec 01 21:11:07 PST 2025

Total time taken to generate the page: 2.16892 seconds