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

Home » Public Forums » archive » Empty arrays?
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: Empty arrays? [message #63563 is a reply to message #63439] Tue, 11 November 2008 10:45 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Nov 10, 5:07 pm, Demitri wrote:
> Hello,
>
> I'm starting to dig into IDL programming, and one thing I've found
> particularly annoying is the lack of support for empty arrays. Although
> I'm using IDL's OO capabilities, I find that I'm spending a lot of time
> testing for return results where an empty array would be much more
> suitable.
...
> This is very basic functionality. Does anyone have a particularly
> elegant... well, I'd say solution, but anything is obviously a
> workaround. I don't want to fight the language, but I get the feeling
> that IDL's philosophy is "yeah, you do it yourself. I can't be
> bothered."

I agree, IDL is sorely missing the concept of an "empty array." In
fact it was one of my "Top IDL requests" in the year 2000 :-)

When I need to manage arrays like lists (and deal with all the cases),
I tend to use my CMINSERT and CMDELETE functions. They more or less
condense the stupid crap-work into an easy-to-read function call. Of
course you sacrifice some performance, but I *tried* to make it
perform as well as I could.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Quaternion spherical interpolation in PV-Wave
Next Topic: map_image edge distortion

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

Current Time: Sun Oct 12 08:16:14 PDT 2025

Total time taken to generate the page: 1.28073 seconds