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

Home » Public Forums » archive » Re: Another small V8.0 bug
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: Another small V8.0 bug [message #71883 is a reply to message #71881] Mon, 26 July 2010 11:44 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Jul 26, 2:24 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:

> Yes, that sort of problem was always possible whenever a new intrinsic
> function is introduced. Or when one installs some new third-party
> library, or just some function from someone who does not try to make
> the routine names more likely to be unique. But it is not a new issue,
> it has always been a consequence of the () ambiguity.

Yes, but not only is "list" a common variable name, but since the list
function can accept any data type, one won't get any error in the
initial function call. I am used to seeing errors like the
following

IDL> obj_new = indgen(10)
IDL> print,obj_new(3)
% OBJ_NEW: String expression required in this context: <INT
( 3)>.
% Execution halted at: $MAIN$

which tells me right away that I am calling a function named OBJ_NEW()
rather than subscripting an array. But I don't believe that a =
list( foo) will ever give an error, and it is only when trying to use
the variable that one will encounter the (less obvious) error.

Thanks again. --Wayne
[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: Re: arbitrary precision in IDL?
Next Topic: Re: How to run a program for datasets located in different folders at a single stretch

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

Current Time: Fri Oct 10 20:39:59 PDT 2025

Total time taken to generate the page: 0.47947 seconds