bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 4 days agoThe meaning of thisimagemessage-square71fedilinkarrow-up1535arrow-down116
arrow-up1519arrow-down1imageThe meaning of thisbestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 4 days agomessage-square71fedilink
minus-squarebestelbus22@lemmy.worldOPlinkfedilinkarrow-up3·3 days agoInteresting, how did they do inheritance? Something like void *super? Also why not switch to CPP if you wanna do OOP?
minus-squarexiii@lemmy.worldlinkfedilinkarrow-up2·2 days agoIn 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.
minus-squarebestelbus22@lemmy.worldOPlinkfedilinkarrow-up1·2 days agoThat sounds like quite a challenge to maintain, to speak in euphemisms ;)
minus-squarexiii@lemmy.worldlinkfedilinkarrow-up2·2 days agoRevolutionary technologies of the '80 make me appreciate modern programming languages and especially tooling much more.
Interesting, how did they do inheritance? Something like
void *super
? Also why not switch to CPP if you wanna do OOP?In general, ‘classes’ declarations were done with macro. I don’t remember the exact code — something akin to
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.
That sounds like quite a challenge to maintain, to speak in euphemisms ;)
Revolutionary technologies of the '80 make me appreciate modern programming languages and especially tooling much more.