Hacker News new | ask | show | jobs
by pepijndevos 4755 days ago
What are "class[es] built from functions and incomplete types"?

I once built classes using structs and function pointers, but this sounds different?

1 comments

An incomplete type is a struct where the definition of the structure is hidden from the view of most of your source code. This makes it impossible to directly access struct elements, and is like data hiding in a object oriented language. Of course in this library you can always include the header containing the struct definition and go bananas so its a soft restriction.