3 ms·
> You don't need macros. You either call via the vtable, or you write a wrapper per interface per message. I know, thus the /s for sarcasms. > Such wrappers a
by throw_m239339 4y ago
> You don't need macros. You either call via the vtable, or you write a wrapper per interface per message.
I know, thus the /s for sarcasms.
> Such wrappers are fairly trivial to generate if you don't want to handwrite them.
It's fairly irrelevant to my point, which is that C structs aren't equivalent to Java classes in anyway.
Of course you can implement OO is C, I've done enough GObject in my life to know how horrible it is to use in practice.
- vidarh 4y agoThey only way they aren't is that the class pointer is hidden from the user.