Docsity

COSC 4780 HW 12: Typing Derivations for Function Definitions - Prof. James L. Caldwell, Assignments of Computer Science

Partial preview of the text

Download COSC 4780 HW 12: Typing Derivations for Function Definitions - Prof. James L. Caldwell and more Assignments Computer Science in PDF only on Docsity!

HW 12 Prof. Caldwell Due: 24 Februrary 2009 COSC 4780

1.) Read Schmidt pp. 31-40, 42-

2.) Give typing derivations for the following using figure 2.3 or describe why they can not be typed.

a.) fun A = 1, fun B = @loc 1 in loc 1 := A + B

b.) fun A = 1, fun B = A + @loc 1 in loc 1 := A + B

c.) fun A = 1; fun B = A + @loc 1 in loc 1 := A + B