CommonType and non-built-in types

Dicebot public at dicebot.lv
Tue Oct 1 10:56:16 PDT 2013


Definition of common type is pretty simple - it is a type both 
types can be implicitly converted to. For `int` and `BigInt` 
common type should be `BigInt` if it was possible to define that 
implicit conversion. AFAIK it is not possible and thus they can't 
have common type.


More information about the Digitalmars-d-learn mailing list