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

Home » Public Forums » archive » Re: deleting structure element
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: deleting structure element [message #20853 is a reply to message #20850] Thu, 27 July 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Fanning (davidf@dfanning.com) writes:

> Bernard Puc (bpuc@va.aetc.com) writes:
>
>> Is there a neat, clever way to "delete" an element from a structure?
>
> Set its pointer to a NULL object.
>
> Cheers,
>
> David
>
> P.S. Alright, maybe it's not "neat", but I think it
> qualifies as "clever". :-)

On further (and more sober) reflection I would probably
answer like this:

No way, no how, if you have a named structure. If you
have an anonymous structure you *could* (under extreme
duress) simply redefine the structure without the
*&%%$^ field:

struct = { a:0, b:0, c:0}
struct = { a:struct.a, b:struct.b }

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Looking for Graffer
Next Topic: keyboard events with WIDGET_DRAW

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

Current Time: Fri Oct 10 15:46:43 PDT 2025

Total time taken to generate the page: 1.91709 seconds