|Title:||Remove inheritance protection|
|Related Issue:||Bugzilla 177|
|Links:||DIP3/Archive — Original Prowiki Page|
Non-public inheritance in a single inheritance language that has a single root object hierarchy makes little sense.
Hiding 'Object' level attributes from a class leads to strange behavior.
The compiler is behaving as spec'ed, but the value and correctness of this part of the spec is in question.
The suggested change, effectively drop one line from the grammar.
SuperClass?: Identifier Protection Identifier // delete
An alternative would be for Object to always be forced to public visibility even if there's a break in the public chain up to it.
This document has been placed in the Public Domain.