Num class

Marcin 'Qrczak' Kowalczyk mk167280@students.mimuw.edu.pl
Thu, 19 Oct 2000 13:24:28 +0200 (CEST)


On Thu, 19 Oct 2000, Marcin 'Qrczak' Kowalczyk wrote:

> - Adding a subtype elsewhere may make a program ambiguous. (Well, it is so
>   with classes too, but at least it occurs only for overlapping instances,
>   not unrelated subtypes of a generic type.)

For example adding two unrelated subtypes of Int16 disallows using 1234 as
a value of type Integer!

-- 
Marcin 'Qrczak' Kowalczyk