Hacker News new | ask | show | jobs
by pengaru 1755 days ago
Unfortunately with this approach to inheritance PIMPL goes out the window, since the class structs are now all public to facilitate embedding...

And despite this public visibility of the object's struct members granted to provide inheritance, the examples are still using getters and setters.

Ok...

1 comments

Once you implement these design parameters, you've essentially written the GObject type system. Might as well use GObject at that point and get tons of language bindings for free.

("Free" after adding some metadata comments specifying parameter ownership/lifetimes, at least.)