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

Home » Public Forums » archive » Re: IDL removes dimensions of size 1 automatically
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: IDL removes dimensions of size 1 automatically [message #41179 is a reply to message #41178] Sun, 26 September 2004 15:46 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Benjamin Hornberger wrote:
> I had a hard time finding a bug which came from IDL's behaviour to
> remove dimensions of size 1 automatically sometimes.
>
> ...
>
> I found this very annoying. Does anyone know more about it? Why is it
> like that?

Since others have already responded on these points I will be brief:

So do I.
No, I think you know as much as anyone.
Why indeed?

> In which situations will IDL do that?

I think the only answer you can rely on is "Whenever you don't want it to".

Seriously, you can *create* arrays with a trailing dimension of size 1
and you can pass them in and out of routines, but beyond that you should
assume that IDL will lose the trailing dimension.

I support the idea of a compiler option to turn this behaviour off. I
suspect, however, that implementing it would open up a Pandora's box of
worms, as the saying goes.


--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: memory/buffer overload?
Next Topic: anonymous structure as member of named event structure

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

Current Time: Tue Dec 02 20:34:43 PST 2025

Total time taken to generate the page: 0.40082 seconds