Literals
Defines a new type by listing all its possible values
Literals can be ordered
operators <, >, <=, >=
Can be defined at any hierarchy level
NEWTYPE color
LITERALS
white, yellow, red, blue,
green, black;OPERATORS
ORDERING;
ENDNEWTYPE color ;
DCL c color;
c < blue
(TRUE)
(FALSE)
Previous slide
Next slide
Back to first slide
View graphic version