Closest Common Type

Manfred Nowak svv1999 at hotmail.com
Fri May 16 12:15:05 PDT 2008


BCS wrote:

> CCT!(E, D) // == C
> CCT!(E, C) // == C
> CCT!(E, B) // == A
> CCT!(E, A) // == A
> CCT!(E, F) // == object

To give it a name:
it's the lowest common ancestor (LCA) in the derivation tree.

-manfred 


More information about the Digitalmars-d-learn mailing list