Say you have:
struct c_struct {
int value;
/* other stuff */
void (* dump)();
};
and you'd like to, at some point:
c_struct_obj->dump();
I assume there's no way you could instantiate a c_struct object such that its particular "dump" function knows its particular "value" the way C++ methods know member variables (via the implicit "this" I suppose)? I guess I know the answer already ("no"). If so, are there other ways of using C structs in an OOPy way?