CGI, Part 2

Matthias Felleisen


Task 1: Convert your original program for collecting numbers into continuation-passing style using function-closures.

Task 2: Convert the continuation-passing version into a version that is independent of the representation of continuations. Implement the continuations as functions.

Task 3: Implement continuations with structures without modifying the main program.

Task 4: Implement continuations with lists without modifying the main program.

Task 5 (optional): Convert this version into a CGI script.


The homework is due on Tuesday 4 December 2001 before class.

Expected size: 200 lines