summaryrefslogtreecommitdiff
path: root/files/practicum/StdT.icl
blob: 413617242f30ef0d467a7cb28a7bc283dcdbec75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
implementation module StdT

import StdEnv

::	T = // implementeer een algebraisch type *of* een record type

instance ==			T where ==			// maak implementatie af
instance <			T where <			// maak implementatie af

instance zero		T where zero		// maak implementatie af
instance +			T where +			// maak implementatie af
instance -			T where -			// maak implementatie af

instance toInt		T where toInt		// maak implementatie af
instance fromInt	T where fromInt		// maak implementatie af

instance toString	T where toString	// maak implementatie af
instance fromString	T where fromString	// maak implementatie af