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

Home » Public Forums » archive » Re: _EXTRA inheritance crashing IDL
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: _EXTRA inheritance crashing IDL [message #30196 is a reply to message #30194] Wed, 10 April 2002 20:44 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.171e9d5d95b9c99c98987f@news.frii.com...
> Rob Preece (Rob.Preece@msfc.nasa.gov) writes:
>> Has anyone seen a behavior where IDL 5.5 crashes on a call to a
>> subroutine with an added _EXTRA keyword? I have found the same
>> behavior on several different machines, Linux and Mac, which does
>> not exist under 5.4.
>
> Well, yes, it crashes IDL 5.5, but not IDL 5.4. But I don't think
> you can hold RSI responsible for using their keyword inheritance
> mechanism in such a bogus way. Formatting the keywords you want to
> pass as a structure (the way this was meant to work) is error free:
>
> PRO test1, _REF_EXTRA = extra
> testStuff = {TITLE:'bob',XTITLE:'jim',YTITLE:'mary'}
> test2, INDGEN (10), _Extra=Create_Struct(testStuff, 'XRange',[0,5])
> END

But Rob was trying to supply keywords to test1 and have them passed to
test2. And the way he did it is valid according to the IDL docs. See
heading "Keyword Inheritance", subheading "Selective Keyword
Redirection", where they give the example

PRO SOMEPROC, _REF_EXTRA = ex
ONE, _EXTRA=['MOOSE', 'SQUIRREL']
TWO, _EXTRA='SQUIRREL'
END

(Yes, it is odd that the variable name ex is not used.)

--
Mark Hadfield
m.hadfield@niwa.co.nz Ka puwaha et tai nei
http://katipo.niwa.co.nz/~hadfield Hoea tatou
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Finding the Non-Matching elements in two vectors
Next Topic: Examine "Saved" IDL procedures now too!

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

Current Time: Thu Oct 16 20:50:26 PDT 2025

Total time taken to generate the page: 1.43966 seconds