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

Home » Public Forums » archive » Another small V8.0 bug
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Another small V8.0 bug [message #71892] Mon, 26 July 2010 10:12 Go to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I have found another bug in V8.0, at least for users who still have
round parenthesis used for indices lurking around in their code.
Like Mike Potter's example, it is not easily repeatable, and for
example sometimes only occurs after compile the program a second
time. And because it occurs in a fairly large program, I have not
yet isolated it into a simple test program. But I can illustrate
the problem after placing a STOP statement

% Stop encountered: SHOWDB 72 /home/landsman/uvot/bpm16274/
showdb.pro
IDL> help,list
LIST LONG = Array[1]
IDL> print,list[0]
183
IDL> print,list(0)
0
IDL> help,list(0)
<Expression> LIST <ID=22 NELEMENTS=1>
IDL> print,list(0) LE 0
% Unable to convert variable to type object reference.
% Execution halted at: SHOWDB 72 /home/landsman/uvot/
bpm16274/showdb.pro
% $MAIN$

IDL> print,!version
{ x86 linux unix linux 8.0 Jun 18 2010 32 64}

So IDL seems confused as to whether 'list' is a variable or an
object. (The code is all imperative statements with no object
syntax). Note that this differs from the long-standing variable/
function ambiguity that can occur when using the () syntax for
indexing. --Wayne
Re: Another small V8.0 bug [message #71916 is a reply to message #71892] Thu, 29 July 2010 11:35 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Jul 29, 1:43 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Jul 29, 12:26 pm, wlandsman <wlands...@gmail.com> wrote:
>
>> Anyone know if there is a way to list all the object instantiation
>> functions (intrinsic or otherwise) that IDL knows about?    I was a
>> bit surprised to find that ROUTINE_INFO(/SYSTEM,/FUNCTION) does not
>> include the list() function.    --Wayne
>
> As I understand it, routine_info(/system) only shows those that are
> not implemented in IDL. I did notice that many init functions show up:
> even though, say, IDLFFXMLDOMDOCUMENT() does not appear, its actual
> function, IDLFFXMLDOMDOCUMENT::INIT, does. And init functions I
> defined in DLMs also show up. So the overload does not show, but the
> init functions that are overloaded do. List's init does not show
> because it is written in IDL.

Thanks. Note that being written in IDL does not mean we can see the
code -- the list and hash functions are stored as IDL save files in
the new /idl80/lib/datatypes/ directory. --Wayne
Re: Another small V8.0 bug [message #71917 is a reply to message #71892] Thu, 29 July 2010 10:43 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jul 29, 12:26 pm, wlandsman <wlands...@gmail.com> wrote:
> Anyone know if there is a way to list all the object instantiation
> functions (intrinsic or otherwise) that IDL knows about?    I was a
> bit surprised to find that ROUTINE_INFO(/SYSTEM,/FUNCTION) does not
> include the list() function.    --Wayne

As I understand it, routine_info(/system) only shows those that are
not implemented in IDL. I did notice that many init functions show up:
even though, say, IDLFFXMLDOMDOCUMENT() does not appear, its actual
function, IDLFFXMLDOMDOCUMENT::INIT, does. And init functions I
defined in DLMs also show up. So the overload does not show, but the
init functions that are overloaded do. List's init does not show
because it is written in IDL.
Re: Another small V8.0 bug [message #71920 is a reply to message #71892] Thu, 29 July 2010 08:26 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Jul 28, 5:53 pm, JD Smith <jdtsmith.nos...@yahoo.com> wrote:

> Haven't managed to download 8 yet, but people should also be aware of
> the increased potential for namespace conflict (and parentheses
> indexing variable/function confusion) arising from the new syntax for
> object instantiation.  I.e. if you have any functions (or
> parenthetically indexed variable in the same scope) of the same name
> as an object class, you will get new conflicts.  This "list" is just
> an example of that.

Anyone know if there is a way to list all the object instantiation
functions (intrinsic or otherwise) that IDL knows about? I was a
bit surprised to find that ROUTINE_INFO(/SYSTEM,/FUNCTION) does not
include the list() function. --Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Do we need PTR_FREE anymore?
Next Topic: NSIDC Looking for Science Programmers

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

Current Time: Wed Oct 08 13:43:52 PDT 2025

Total time taken to generate the page: 0.00678 seconds