Oddbean new post about | logout
 @eb948c00 Well, technically this is lecit as the `this `pointer is not relevant being `nullptr`.

If we assume that the call `ptr->someFunction()`is ideally expanded as `MyScaryClass::someFunction(ptr)` as the vtable is not accessed.

However, any decent compiler (with the relevant warnings enabled) should warn this is not the best way to write this piece of code.