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

Home » Public Forums » archive » Re: Finding if a structure tag name is defined?
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: Finding if a structure tag name is defined? [message #36696 is a reply to message #36695] Tue, 14 October 2003 14:53 Go to previous messageGo to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
David Fanning <david@dfanning.com> wrote:
> Reimar Bauer writes:
>> I often use is_tag to determine if a tag is in a structure

OK, thanks, I'll give it a go.

> But, alas, you are still going to have to call IS_TAG
> as many times as you have letters in your keyword, if
> you hope to fish it out unambiguously. :-(

Hmm, so, isn't that a flaw in IDL? Taking on board your
well-reasonsed critique of (over)using _extra, it still seems
quite reasonable to expect to be able to find if a given tag
exists in a given structure, via a mechanism as simple as
using n_elements to see if a given variable exist. IDL seems
to make this simple task harder than it should be.

(and anyway, looking at the pro, it only needs calling once).

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: What does an optimal scientific programming language/environment need?
Next Topic: efficient polynomial fitting

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

Current Time: Wed Oct 08 17:28:00 PDT 2025

Total time taken to generate the page: 0.07156 seconds