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

Re: Time to rewrite dpkg



* Ossama Othman said:

>  > 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. :-)
Perhaps, but not clean. And doesn't make sense in this particular case...
Remember the rule of the Ockham's Razor???? I think it should be obeyed
here...


marek

Attachment: pgpNj0svEKoBi.pgp
Description: PGP signature


Reply to: