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

Home » Public Forums » archive » printing an array from pointers
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: printing an array from pointers [message #48181 is a reply to message #48125] Wed, 29 March 2006 08:43 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul Van Delst writes:

> No "etc" allowed:
>
> IDL> a=4
> IDL> b=7
> IDL> t = [a, b]
> IDL> help, t
> T INT = Array[2]
> IDL> t = [ [a], [b] ]
> IDL> help, t
> T INT = Array[1, 2]
> IDL> t = [ [[a]], [[b]] ]
> IDL> help, t
> T INT = Array[1, 1, 2]
> IDL> t = [ [[[a]]], [[[b]]] ]
>
> t = [ [[[a]]], [[[b]]] ]
> ^
> % Only three levels of variable concatenation are allowed.
>
>
> I've always found this behaviour confusing. Why special case for only three levels?

Oh... because it's IDL, that's why. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDLgrPalette woes
Next Topic: IDLgrPalette woes

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

Current Time: Sat Oct 11 07:10:09 PDT 2025

Total time taken to generate the page: 1.36136 seconds