888

Incase it doesn't show up:

you are viewing a single comment's thread
view the rest of the comments
[-] SpaceNoodle@lemmy.world 5 points 2 weeks ago

How do you implement an interface in C++ without an abstract class?

[-] pelya@lemmy.world 1 points 2 weeks ago

I know at least three ways, one of them involves variadic macros.

You don't even need to look that far, take any sufficiently aged library, like OpenGL.

[-] SpaceNoodle@lemmy.world 1 points 2 weeks ago
[-] pelya@lemmy.world 2 points 2 weeks ago

Yet I still had an urge to explain an obvious thing. Because it's C++, so everyhing goes. There are even tools to auto-generate C++ interfaces, because of course someone decided that C++ is inadequate and must be improved using some kind of poorly-documented ad-hoc extension language on top of C++.

load more comments (5 replies)
this post was submitted on 02 Sep 2024
888 points (99.0% liked)

Programmer Humor

32041 readers
1257 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS