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 #30269 is a reply to message #30198] Thu, 11 April 2002 13:21 Go to previous message
Rob.Preece is currently offline  Rob.Preece
Messages: 8
Registered: December 1999
Junior Member
In article <MPG.171e9d5d95b9c99c98987f@news.frii.com>, david@dfanning.com wrote:

> Rob Preece (Rob.Preece@msfc.nasa.gov) writes:
>
>> OK, Rob de-lurking here.
>
> Oh, good. :-)
>
<snip>
>
> 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
>
> PRO test2, plotStuff, _EXTRA = extra
> PLOT, plotStuff, plotStuff, _EXTRA = extra
> END
>
> Cheers,
>
> David


Thanks David,

But:

I have a *very* good reason for doing it this way (otherwise, why bother!
;) I have a set of keywords to pass on to an embedded plot routine, and I
can't know at the time what their values will be. I have a plot zooming
function in a widget (object) that simply calls the object's 'PLOT'
method, passing new x and y ranges. The plot method does some stuff, and
then hands it all off to the IDL (direct) PLOT routine, adding in the
'XRANGE' and 'YRANGE' keywords so that they can be overridden when the
'ZOOM' method is invoked. Very much like 'test1' in my sample code. Since
I followed the documentation as Mark H. mentioned, is this a valid bug in
IDL? How to proceed?

Maybe I'll just go for a beer (unfortunately, no good Colorado brews make
it into Alabama!)...

- Rob
[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: Sun Oct 12 11:31:56 PDT 2025

Total time taken to generate the page: 0.32220 seconds