Programming Languages (CS302 2007S)
[Skip to Body]
Admin:
[Front Door]
[Glance]
[Handouts]
[Honesty]
Current:
[Current Outline]
[Current EBoard]
[Current Homework]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Outlines]
[Readings]
[Reference]
[HOG]
Misc:
[SamR]
[CSC302 1999S]
[CSC302 2006S]
Back to Continuation Basics. On to Basics of Object-Oriented Programming.
This outline is also available in PDF.
Held: Friday, March 2, 2007
Summary: Today we consider the application of continuations to Web services.
Related Pages:
Due
Notes:
Overview:
statelessnessof the Web.
prompt
, which prompts the user, and result
,
which displays a result.
prompt
and result
(one for shell-based
interaction and one for a simulation of Web-based interaction).
prompt
and result
aliases to whichever
one I currently want to use.
(local)
and (web)
let us switch between versions.
exit
, which lets you return to the top level
resume
, which lets you restart the code at the
stopped point.
resume
and then call
exit
.
exit
resumes the other routine.
(define cps-plus (lambda (x y cont) (cont (+ x y))))
(+ 4 (* 3 (- (+ x x) a)))
(cps-plus x x (lambda (tmp1) (cps-minus tmp1 a (lambda (tmp2) (cps-times 3 tmp2 (lambda (tmp3) (cps-plus 4 tmp3 (lambda (tmp4) (display-result tmp4)
Back to Continuation Basics. On to Basics of Object-Oriented Programming.
[Skip to Body]
Admin:
[Front Door]
[Glance]
[Handouts]
[Honesty]
Current:
[Current Outline]
[Current EBoard]
[Current Homework]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Outlines]
[Readings]
[Reference]
[HOG]
Misc:
[SamR]
[CSC302 1999S]
[CSC302 2006S]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Sun Apr 29 11:26:16 2007.
The source to the document was last modified on Tue Jan 16 13:34:43 2007.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS302/2007S/Outlines/outline.18.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby