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

Home » Public Forums » archive » LIST "bug": .Remove on an empty list
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
LIST "bug": .Remove on an empty list [message #74002] Mon, 13 December 2010 11:53 Go to previous message
Matt Haffner is currently offline  Matt Haffner
Messages: 34
Registered: October 2000
Member
Although this is easy to code around by checking the length before
calling .Remove, I was surprised this just didn't return silently:

IDL> l=list(1, length=100)
IDL> help,l
L LIST <ID=1424588 NELEMENTS=100>
IDL> l.remove,/all
IDL> help,l
L LIST <ID=1424588 NELEMENTS=0>
IDL> l.remove,/all
% PTR_FREE: Pointer type required in this context: P.
% Error occurred at: LIST::REMOVE
% LIST::REMOVE
% $MAIN$
% Execution halted at: $MAIN$

Passing it along to help the diagnosing of cryptic errors ;)

mh
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: LIST "bug": .Remove on an empty list
Next Topic: spawning Fortran executables

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

Current Time: Fri Oct 10 12:35:28 PDT 2025

Total time taken to generate the page: 0.64141 seconds