3 ms·
This article is about Java, your comment is about JavaScript.
by adrianmsmith 4y ago
This article is about Java, your comment is about JavaScript.
- klntsky 4y agoOoof. Didn't realize it. Still, I believe the same applies, we can't dynamically analyze pointers at the time scoping must be settled.
- int_19h 4y agoWhat does it have to do with pointers? super() in Java is a special language construct, it's not a method that you can have a pointer to. Thus it can be analyzed exactly the same as e.g. definitive variable assignment, and "this" be unavailable on any codepath on which super() has not been definitively called.