Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cimshop!davidm From: davidm@cimshop.UUCP (David Masterson) Newsgroups: comp.lang.c++ Subject: Re: assignment to `this' is deprecated in C++ 2.0 Summary: Callback Routines Message-ID: <422@cimshop.UUCP> Date: 5 Jun 89 17:01:21 GMT References: <9432@alice.UUCP> Organization: Consilium Mt. View CA Lines: 13 In-reply-to: ark@alice.UUCP's message of 4 Jun 89 00:56:33 GMT In the discussion of "this", I'm wondering what the mechanism is for supporting references to classes by library functions outside of C++. For instance, functions within things like a screen manager (X, Suntools) can take arguments that they will then pass to other functions when the screen manager makes a callback (Callback routines). In order to set the context of the routine that is called back, does it make sense to pass a reference to "this" to a screen manager function for later passing to the callback routine? If not, what is the prescribed method of leaving the "class" context of C++ for dealing with routines in other areas/languages and then reconstituting that context when the routines later return? David Masterson (preferred address) uunet!cimshop!davidm or DMasterson@cup.portal.com