-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C4 linearization: C3 with extra struct (linear) inheritance constraint (
#1118) Extends the C3 algorithm with a 4th constraint, that struct subclasses can only mix if they form a linear struct inheritance chain (ie no diamonds). This allows us to: - lift the restriction of structs only inheriting structs; they can inherit classes so as to fix the slot layout. - lift the single inheritance restriction of structs, which can now mix in multiple classes, subject to the linear inheritance constraint. --------- Co-authored-by: vyzo <[email protected]>
- Loading branch information
Showing
95 changed files
with
100,104 additions
and
100,647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.