C3 Type System Method Resolution Order when mix multiple types

#1

Are Types listed after the keyword “mixes” searched in a “left to right” order to resolve method overrides, or “right to left”?

Python uses “C3 linearization” for it’s Method Resolution Order: https://www.python.org/download/releases/2.3/mro/ I’m wondering if we do something similar.

Just want to know what happens when we encounter the diamond inheritance problem: https://en.wikipedia.org/wiki/Multiple_inheritance#The_diamond_problem

0 Likes