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

Home » Public Forums » archive » 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: Structures [message #42918 is a reply to message #23873] Tue, 01 March 2005 14:39 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> Michael Wallace writes:
>
>
>> Do named structures
>> actually serve a useful purpose other letting you condense your syntax
>> when creating them?
>
>
> Well, you can count on them, as opposed to everything else
> in IDL.

Heh heh. It's true though - all my routines that use named structures check them on input:

! -- Check that input is, indeed, a structure
Type_Name = SIZE( MyStruct, /TNAME )
IF ( STRUPCASE( Type_Name ) NE 'STRUCT' ) THEN $
MESSAGE, 'Input is not a structure'

! -- Check that it's the right type of structure
Structure_Name = TAG_NAMES( MyStruct, /STRUCTURE_NAME )
IF ( STRUPCASE( Structure_Name ) NE 'MYSTRUCT' ) THEN $
MESSAGE, 'Input is not a MyStruct structure'


But, then, I also do that for longs and floats sometimes too. I'm a belts and braces type
of guy I guess. :o)

> I would have thought *that* would be worth something
> to a C++ kind a guy. :-)

To quote Michael from a previous post:

"I believe Java, C and sometimes C++ are the best languages to use when learning how to
design software."

Given that IDL had its beginnings in <shock, gasp> Fortran, maybe that's why he doesn't
grok how IDL handles structures. :o)

paulv

p.s. And, yes, I'm just pulling your whizzer Michael. :o)


--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: catch and I/O errors
Next Topic: object widgets

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

Current Time: Wed Oct 08 17:29:35 PDT 2025

Total time taken to generate the page: 0.00489 seconds