🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3526

Re: Generic Object Callbacks

#3526
From: David Byrden
Date: Tue, 27 Feb 1996 18:48
20 lines
1768 bytes
>> There exist a rather simple solution using a static member function.
>> Instead of having the callback call a normal member function it can
>> call a static callback member function with the object as a
>> argument

  This would require to caller to store and pass the address of the 
object. Since a different static function would exist for each 
callbackable member of the class, the caller would have to keep and use 2 
items of data. He would presumably wrap them in a class for convenience, 
at which point he would have reinvented most of the work done by Richard 
Hickey's callback class.

                                David
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]
Technical Details
Message-ID: <4gvdbs$ccf@news.bridge.net>
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern
References: <pgpmoose.199602221531.14635@isolde.mti.sgi.com> <4gsi2p$905@bcarh8ab.bnr.ca> <4guh9e$jt6@sdaw04.seinf.abb.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern
From: David Byrden <100101.2547@compuserve.com>
Newsgroups: comp.std.c++
Subject: Re: Generic Object Callbacks
Date: 27 Feb 1996 10:48:27 PST
Organization: self-employed
Approved: austern@isolde.mti.sgi.com
Message-ID: <4gvdbs$ccf@news.bridge.net>
References: <pgpmoose.199602221531.14635@isolde.mti.sgi.com> <4gsi2p$905@bcarh8ab.bnr.ca> <4guh9e$jt6@sdaw04.seinf.abb.se>
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: 27 Feb 1996 17:00:44 GMT
X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMTNSDEy4NqrwXLNJAQHVdgH/a11wVrV3mNnzVuQP+R2292xnRTa9eORX
 Mvi+GetVycE9B0306+M/JZI5/tbc3w8NJ6HqRSh2IaL+uxFLcmbaRw==
 =YFv2
Originator: austern@isolde.mti.sgi.com