JPDev@programming.dev to Programmer Humor@programming.dev · 7 months agoWhitespaceprogramming.devimagemessage-square51fedilinkarrow-up1285arrow-down110
arrow-up1275arrow-down1imageWhitespaceprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 7 months agomessage-square51fedilink
minus-squareValmond@lemmy.mindoki.comlinkfedilinkarrow-up7·7 months agoFound the guy that can probably do function pointers!
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up4·7 months agoI wrote a couple unholy lines of C++ the other day using the ternary conditional operator to select a class member function to be called with a fixed argument. I think my teammates were too scared to call me out on it.
minus-squareYaBoyMax@programming.devlinkfedilinkEnglisharrow-up2arrow-down1·7 months agoKISS, my guy.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up3·7 months agoIt’s actually simpler than doing it the “right” way, but I wanted to see how much I could make C++ pretend it was Python.
minus-squareTraister101@lemmy.todaylinkfedilinkarrow-up3·7 months agoLol yeah. I don’t even really write C++ but I sure as shit know a bunch of syntax and junk haha
Found the guy that can probably do function pointers!
I wrote a couple unholy lines of C++ the other day using the ternary conditional operator to select a class member function to be called with a fixed argument.
I think my teammates were too scared to call me out on it.
KISS, my guy.
It’s actually simpler than doing it the “right” way, but I wanted to see how much I could make C++ pretend it was Python.
Lol yeah. I don’t even really write C++ but I sure as shit know a bunch of syntax and junk haha