August Karlstrom
2006-06-25 14:02:39 UTC
Hi,
Does anyone know if there is a way to introduce distinct numeric types
in Oberon? At least with the OOC compiler, the module below compiles.
MODULE Test;
TYPE T1 = INTEGER; T2 = INTEGER;
VAR v1: T1; v2: T2;
BEGIN
v1 := 1; v2 := v1;
END Test.
I would "like" the last statement to be invalid.
Regards,
August
Does anyone know if there is a way to introduce distinct numeric types
in Oberon? At least with the OOC compiler, the module below compiles.
MODULE Test;
TYPE T1 = INTEGER; T2 = INTEGER;
VAR v1: T1; v2: T2;
BEGIN
v1 := 1; v2 := v1;
END Test.
I would "like" the last statement to be invalid.
Regards,
August