On Thursday, 30 November 2017 at 10:39:07 UTC, Ola Fosheim Grøstad wrote:
On Thursday, 30 November 2017 at 09:01:20 UTC, Jonathan M Davis wrote:
It's close enough. Instead of segfaulting when the member function is called, it'll segfault when it tries to access one of the member variables or non-final member functions inside the member function. So, there isn't any more need to add null checks for final member functions than there is for non-final member functions.

Err... wait. What if you have a conditional:

    if(input == 0) { do something bad }
    access field

Or even worse:

if (input != 0) access fields
else do bad stuff


Reply via email to