|
Projects
Spring 2012 Older Courses Fall 2011 Spring 2011 Fall 2010 Spring 2010 Fall 2009 Spring 2009
Fall 2008
Spring 2008
Fall 2007 HOWTOs |
Home Assignments Lecture Blog Resources Project 91.301 Organization of Programming Languages Problem Set 6: Type SystemsOverviewThis problem set introduces three ways to build type systems in Scheme: generic operations with explicit dispatch, data-directed style, and message-passing style. ReadingBefore doing this problem set, read the following material:
ImplementationUse Module language in Dr. Scheme 4.x for this problem set. Use this starter code for completing the work. Problems1. Exercise 2.76 on pp. 187, a discussion of the three strategies presented in the text. Before answering the questions, briefly define the three strategies. 2. Exercise 2.77 on pp. 192193 on complex-number selectors in type table. 3. Exercise 2.78 on pp. 193, implementing our 4. Exercise 2.79 on pp. 193, implementing a generic equality predicate. 5. Exercise 2.81 on pp. 200, fixing 6. Exercise 2.83 on pp. 201, raising objects type per the tower of types. 7. Exercise 2.84 on pp. 201, modifying |