Newsgroups: comp.lang.idl-pvwave
From: "J.D. Smith" <jdsm...@astrosun.tn.cornell.edu>
Date: 1999/08/14
Subject: Re: Pointers
L
> (2) When you wish to return information from a dying widget. If you want I would expand this step to include storing a copy of the pointer > a widget program to return an item of information, then it must be > passed in a variable which has global scope. A pointer is the most > convenient way to pass this kind of information. The method is > - Create the information structure, > - Store the information structure using a pointer, > - Store the pointer in the user value of the widget top level base, elsewhere, to eliminate the problem of dissappearing uvalues so common in non-blocking widget applications. The best thing about pointers (and objects, for that matter) is that the One feature I use all the time with pointers is as follows: when saving saved_ptr=self.BigAndUselessDataPtr ; detach I actually wrap the whole thing in some error catching code to avoid (By the way, if you actually want to use this technique, please search I could go on and on, but basically, the more you use pointers, the Good Luck, JD -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||