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

Home » Public Forums » archive » Re: 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 #25675] Wed, 11 July 2001 09:36 Go to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
Paul van Delst wrote:
> Umm, I haven't had my requisite 4 cups of coffee yet this morning so I may be fading in
> and out here, but if you specify a keyword TIME=something, how is the interpreter supposed
> to know if you are specifying TIME,

if you specify TIME=something, then you are specifying TIME, or <see subject>

> TIMEUNIT abrreviated to "TIME",

"Keywords can be abbreviated to their shortest unique length", which would be TIMEU
(considering that TIME would not be unique, ambiguous with both TIME and TIMESTEP).
Therefore there is no way you could be abbreviating TIMEUNIT to "TIME". (Well, you could
of course, but the interpreter should not allow it.)

> or TIMESTEP abbreviated to "TIME"?

"Keywords can be abbreviated to their shortest unique length", which would be TIMES
(considering that TIME would not be unique, ambiguous with both TIME and TIMEUNIT).
So again, abbreviating TIMESTEP to "TIME" would be illegal.

Simple as that. If a routine only accepted TIMESTEP and TIMEUNIT keywords, then "TIME"
would be ambiguous. If the routine also accepts a TIME keyword, then "TIME" should just
be, well, TIME.

Maybe it's just that I have been drinking coffee all day...

Cheers,
Jaco

P.S.: My only point is that the IDL behaviour is not logical and not documented. In
my own codes I am of course using your suggested fix: TIMEVALUE.

----------------
Jaco van Gorkom gorkom@rijnh.nl
FOM-Instituut voor Plasmafysica `Rijnhuizen', The Netherlands
[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
Read Message
Read Message
Previous Topic: help with findfile
Next Topic: read input from a widget

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

Current Time: Wed Oct 08 14:52:33 PDT 2025

Total time taken to generate the page: 0.00407 seconds