[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Time to rewrite dpkg



Hi,

On 19 May, David Starner wrote:
 > Aaron Van Couwenberghe wrote:
 > > This is simply not true.
 > Why? Tell me how I pass a C++ object to C, Fortran or Pascal. 

The same way you pass fortran to C: use wrappers, for example.  Here is
one way of passing a static C++ method to a C function (e.g. signal
system call) in C++ code:

extern "C" void
Base_cleanup (void *object, void *)
{
  Base::cleanup (object, 0);
}

Simple. :-)

-Ossama
-- 
Ossama Othman <othman@cs.wustl.edu>
Center for Distributed Object Computing, Washington University, St. Louis
58 60 1A E8 7A 66 F4 44  74 9F 3C D4 EF BF 35 88  1024/8A04D15D 1998/08/26


Reply to: