Go backward to Subtyping of Function Types
Go up to Top
Go forward to Record Introduction Principle
The Copy Rule for Blocks
- Copy rule for lazy evaluated abstractions also applies when abstractions
are locally defined within a block:
- begin define I=U, ..., define I=U
in V end
[U/I, ..., U/I]V
- Example:
- begin const A=2, const B=3
in begin fun F(X:intexp) =
X+A+B
in begin const A=4 in F(A)+B
end
end
end
- ...
- (lambdaX. X+2+3)(4)+3
Does not apply to eagerly evaluated abstractions!
Wolfgang.Schreiner@risc.uni-linz.ac.at
Id: qualification.tex,v 1.2 1996/05/02 11:53:49 schreine Exp schreine