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

Home » Public Forums » archive » Re: newbie question / concatenation of arrays of nested structure
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: newbie question / concatenation of arrays of nested structure [message #17050 is a reply to message #17047] Wed, 08 September 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Thomas Launey (t_launey@brain.riken.go.jp) writes:

> This question has probably been already posted many time.
> how can I concatenate 2 arrays of anonymous nested structures?
> In other word, try to concatenate the two arrays below
>
> first=replicate({a:0,b:'name',c:{d:0,e:0}},5)
> second=replicate({a:0,b:'name',c:{d:0,e:0}},3)
> third=[first,second]
> % Conflicting data structures: B,concatenation.
> % Execution halted at: $MAIN$
>
> I have not been able to find a way to do that properly (without subscripting
> each field one after another) an there are no example in David Fanning's
> book (Hey David, I've bought your great book, please help :-))

Not everything is in the book. Sometimes you have to
visit my web page. :-)

http://www.dfanning.com/tips/concatenate_structs.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Nautical Miles to Lat/Lon Degrees
Next Topic: Updates to SAVEIMAGE and SHOWIMAGE

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

Current Time: Sun Oct 12 01:31:24 PDT 2025

Total time taken to generate the page: 0.56126 seconds