[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: delvar
- From: steinhh(at)ulrik.uio.no (Stein Vidar Hagfors Haugan)
- Date: 9 Feb 1999 10:53:27 GMT
- In-reply-to: "Dominic Zarro"'s message of Mon, 8 Feb 1999 22:46:40 -0500
- Newsgroups: comp.lang.idl-pvwave
- Organization: University of Oslo, Norway
- References: <36B9AD10.firstname.lastname@example.org> <email@example.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:13593
In article <firstname.lastname@example.org> "Dominic Zarro"
> Actually, my last response was incorrect.
> A better way, using pointers is as follows:
> ;-- to delete a variable var
> ;-- allocate a pointer
I guess you mean
(Seeing the "/all" in the ptr_new made me *really* confused,
I think the two extra letters are very clarifying :-)
> You can easily package the above into a simple
> procedure that deletes any variable var.
How about a one-line "syllogism":
It's amazing what you have to do to delete a variable in IDL :-)
This discussion reminded me of a procedure I wrote some time in
1994, called like this:
This was way before temporary() appeared on stage, and it even
(still) has checks to function (resorts to copying) with IDL
3.0, which didn't even have the NO_COPY keyword in the
Then came the handles, and then...
Which again reminds me - it would be *really* nice if RSI would
start putting in "Not before version X.XX" information in the
online documentation for (new) features. It's tiresome enough
trying to write version-sensitive code, and I just don't need
the extra work required to check exactly which of the current
features go back to this or that version...