Context: |
multi-method in a type family that features type promotion (with strictly linear precision order. E.g. a sequence of Numbers, by precision.) |
||
Challenge: |
Given two objects - to convert the lesser to the type of the higher. |
||
Skill: |
|||
Participants: |
|
||
Used by: |
Metamorphic Bridge (Generic Number). |
||
Signature: |
Quantity responds to messages to compare its precision with another Quantity, implemented by Concrete Quantity (e.g. forwarded from template method in quantity). |
||
Comments: |
|
||
Source: |
Coplien. |
||
Scope: |
General. |