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

Home » Public Forums » archive » Re: Keyword precedence
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: Keyword precedence [message #21451 is a reply to message #21389] Fri, 25 August 2000 18:27 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Mark Hadfield" <m.hadfield@niwa.cri.nz> wrote in message
news:967252103.29393@clam-ext...
>
> With the third one, 12 is printed in every case! My interpretation: IDL's
> handling of keyword abbreviations is such that an abbreviated keyword
takes
> precedence over a non-abbreviated one, and this overrides the "fully
> by-reference first" rule.

This isn't quite true either. Further experimentation, left as an exercise
for the reader, establishes that the "fully
by-reference first" rule only applies when the conflicting keywords have
identical names. If the user-supplied keyword name to MGH_EXAMPLE_KEYWORDS
is shorter *or* longer than the default it's supposed to override, then the
user-supplied value wins every time.

I guess the point is that the reference inheritance mechanism only has to
choose between conflicting keywords when they are represented by
(case-insensitively) identical strings. Otherwise it just passes them both
through to the next level, where they are dealt with properly.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
[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: From PV-WAVE to IDL
Next Topic: Re: Gridding options

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

Current Time: Sat Oct 11 00:56:16 PDT 2025

Total time taken to generate the page: 1.04011 seconds