Oddbean new post about | logout
 nostr:npub1aw2gcqz09z6lq5w5thzcadjsy8n7srs8mczkgs4c5rvjyyfh96nsg38vv5 yeeeah. I would be surprised if whoever wrote that understood what they were doing.
Really that code is just doing...

MyScaryClass::someFunction()

static class functions are exactly like "regular" C style functions - there's no hidden / implicit this pointer passed to it.

afiak the whole null pointer bit basically does nothing other than scope the (static) function to class so the compiler can resolve it - honestly, I'm surprised it complies though!