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

Home » Public Forums » archive » Re: More LIST weirdness?
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: More LIST weirdness? [message #73979 is a reply to message #73978] Tue, 14 December 2010 12:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst writes:

> Based on the other thread about list access errors, does the following make sense to anyone:
>
> IDL> q = list()
> IDL> help, q
> Q LIST <ID=1 NELEMENTS=0>
> IDL> help, q[0]
> <Expression> UNDEFINED = !NULL
> IDL> help, q[1]
> <Expression> UNDEFINED = !NULL
> IDL> help, q[2]
> <Expression> UNDEFINED = !NULL
> IDL> x=q[5]
> IDL> help, x
> X UNDEFINED = !NULL
>
> ??

Actually, it does. :-)

Given that lists must be built internally using pointers,
I would say this makes perfect sense to me. I just don't
want to explain to anyone right now. :-)

Cheers,

David

P.S. I'm not saying I'm in favor of inconsistent behavior
or anything like that. I'm just saying that in a weird way,
this does make sense to me. Pointers created with
ALLOCATE_HEAP sort of thing. :-(



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: More LIST weirdness?
Next Topic: Re: Widget not rendering properly

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

Current Time: Wed Oct 08 19:31:40 PDT 2025

Total time taken to generate the page: 0.00416 seconds