🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38355

Re: C++ and callbacks

#38355
From: Warner Losh
Date: Wed, 04 May 1994 04:38
18 lines
1614 bytes
In article <2q5f97INNt6o@eccdb1.pms.ford.com> poorman@cc4032.pms.ford.com (Glenn M. Poorman) writes:
>Unfortunately, the only way around this problem (as far as I know) is
>to either use the "this" pointer as the client_data (as you mentioned
>above) or write your own mechanism for registering member functions
>as callbacks.

Or you a toolkit that supports member functions directly because it is
written in C++.  The only one that does that, and implements a
faithful Motif interaction model is Object Interface.

Doug Young recommends using a static member function to acoomplish
this, but that is rather a large kludge, imho.

Warner
-- 
Warner Losh		imp@boulder.parcplace.COM	ParcPlace Boulder
"... but I can't promote you to "Prima Donna" unless you demonstrate a few
 more serious personality disorders"
Technical Details
Message-ID: <Cp9Gw4.KHu@boulder.parcplace.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!ames!ncar!csn!boulder.parcplace.com!imp
References: <pauld.767898877@sarge> <2q5f97INNt6o@eccdb1.pms.ford.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,ad5a39011a2d3d26
X-Google-Attributes: gid109fba,public
X-Google-Thread: 103734,ad5a39011a2d3d26
X-Google-Attributes: gid103734,public
X-Google-Thread: 10ba33,ad5a39011a2d3d26
X-Google-Attributes: gid10ba33,public
X-Google-ArrivalTime: 1994-05-04 03:29:01 PST
Newsgroups: comp.windows.x,comp.lang.c++,gnu.g++.help
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!ames!ncar!csn!boulder.parcplace.com!imp
From: imp@boulder.parcplace.com (Warner Losh)
Subject: Re: C++ and callbacks
Message-ID: <Cp9Gw4.KHu@boulder.parcplace.com>
Sender: news@boulder.parcplace.com
Organization: ParcPlace Boulder
References: <pauld.767898877@sarge> <2q5f97INNt6o@eccdb1.pms.ford.com>
Date: Wed, 4 May 1994 04:38:28 GMT
Lines: 18