497
submitted 1 week ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 4 points 1 week ago

Interesting, how did they do inheritance? Something like void *super? Also why not switch to CPP if you wanna do OOP?

[-] [email protected] 2 points 1 week ago

In general, 'classes' declarations were done with macro. I don't remember the exact code — something akin to

BEGIN_CLASS(A, Parent);
CLASS_MEMBER(a...)
END_CLASS();

The project had started before C++ existed, and the switch would be too costly. It's not just OOP part, also reflection mechanism with bindings to the homemade scripting language, and multi-platform UI library. It was a gem of its time.

[-] [email protected] 1 points 1 week ago

That sounds like quite a challenge to maintain, to speak in euphemisms ;)

[-] [email protected] 2 points 1 week ago

Revolutionary technologies of the '80 make me appreciate modern programming languages and especially tooling much more.

this post was submitted on 08 Jun 2025
497 points (97.7% liked)

Programmer Humor

36554 readers
640 users here now

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

Rules:

founded 5 years ago
MODERATORS