



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concept of types in programming languages, including data types, type checking, and polymorphism. It explains how types provide context for operations and limit the set of allowed operations. The document also covers type equivalence and compatibility, and the importance of type checking in ensuring a program obeys the language's rules.
Typology: Study notes
1 / 6
This page cannot be seen from the preview
Don't miss anything!




1
Lecture - XV March 14th, 2006
2
3
Types provide implicit context for many operations
4
Types limit set of operations
7
8
Two principal ways of defining type equivalence:
9
type str1 = array [1..10] of char;
type str2 = array [1..2*5] of char;
type str3 = array [0..9] of char;
10
foo1 and foo2 are considered as different types!