Re: Hints on how to migrate from C++ to C





tedu wrote:
> John Bode wrote:
>
> > C++ C
> > ---------- ------------
> > classes no equivalent
> > inheritance no equivalent
>
> Structs with function pointers come close.

For sufficiently distant values of "close".

.



Relevant Pages

  • Re: Hints on how to migrate from C++ to C
    ... John Bode wrote: ... Structs with function pointers come close. ... Prev by Date: ...
    (comp.lang.c)
  • Re: function pointers
    ... > Can anyone tell me the advantages of using function pointers? ... Take a look at qsort and bsearch, ... they manage to process any kind of array without knowing what kind of array ... be an array of structs, and qsort has no idea what criteria you use to ...
    (comp.lang.c)
  • Re: [PATCH][RFC] kvm-scheduler integration
    ... function pointers are common to all virtual machines. ... finish_lock_switch(rq, prev); ... ok, this looks certainly cheap enough from a scheduler POV, and it cleans up the whole KVM/scheduling interaction quite nicely. ...
    (Linux-Kernel)
  • Re: Passing an array of structures from c# to c++
    ... I did a series of articles on how to pass structs around from managed to native code. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.interop)
  • illegal memory access with function pointers
    ... I wanted to know how do function pointers sometime access illegal ... Roshni ... Prev by Date: ...
    (comp.lang.c)