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

Home » Public Forums » archive » Am I stupid?
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: Am I stupid? [message #25753 is a reply to message #25702] Thu, 12 July 2001 00:23 Go to previous messageGo to previous message
colinr is currently offline  colinr
Messages: 30
Registered: July 1999
Member
On 11 Jul 2001 21:02:04 GMT,
William Thompson <thompson@orpheus.nascom.nasa.gov> wrote:

> I've also been occasionally frustrated by this behavior, but I've come to the
> conclusion (a little reluctantly) that it's actually ``A Good Thing''. In a
> perfect world, we could be sure that the user remembered not to use TIME as an
> abbreviation of TIMESTEP, but you and I know that we don't live in a perfect
> world.
>
> It would be better, as somebody has already suggested, if situations like this
> were caught by the compiler, instead of waiting until somebody actually tried
> to use the TIME keyword. But the present abbreviation rules should not be
> changed.

However the current situation also allows the related problem I
described:

pro MySurfacePlot,axiscolor=axiscolor,_extra=e

<do some stuff with colors>
shade_surf,MyData,_extra=e

end

which works perfectly for the first 100 times the user uses it until
the day he trys to set the AX keyword. Thus to use _extra correctly one
must bear in mind all possible valid keywords to all inheriting
subroutines and ensure that none of programmer-defined keywords
can be abbreviated as any of them.

--
Colin Rosenthal
Astrophysics Institute
University of Oslo
[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
Read Message
Previous Topic: Re: polar contours over maps
Next Topic: Where is the largest point ?

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

Current Time: Wed Oct 08 18:40:55 PDT 2025

Total time taken to generate the page: 0.00201 seconds