This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: sizeof bit-fields
Hi Christian,
>well, at least you have function pointers, right?
Function pointers are a great deal different from object methods.
Especially since if you put function pointers in the structure, it will make the structure more than 5 bytes big (which is one of the criteria).
And I don't think C allows static function pointers that are part of (or associated with) a struct.
Note -- a person can do object-oriented programming with C. Case in point, the POV ray-tracer. But the language (at least, C89) doesn't facilitate object-oriented programming.
But, as I've said, I haven't programmed in C since 1989, and C99 may have incorporated some new-and-interesting programming techniques/paradigms.
Sincerely,
--Eljay