Fundamentals of CS I (CS151 2001S) : Outlines
[Current]
[Discussions]
[Glance]
[Honesty]
[Instructions]
[Links]
[News]
[Search]
[Syllabus]
Primary
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Quizzes]
[Readings]
[Reference]
Sets
[Blackboard]
[Scheme Report]
[SamR's Schedule]
[Rebelsky/Fall 2000]
[Walker/Fall2000]
[Stone/Spring2000]
Links
Reading: Records (pdf). Lab: Records (pdf). Back to Discussion of Exam2. On to Object Basics.
Held Wednesday, May 2, 2001
Summary
Today we consider how to build records in Scheme. Records group data and permit access to those data by name.
Notes:
http://people.delphi.com/gjc/siod.html.
Overview
entry.
(define produce-type-mark
(let ((type-mark (list 'compound)))
(lambda () type-mark)))
let creates a new symbol table with one
entry whose name is type-mark and whose value
is (compound).
lambda gets that value.
compound will be
equal? to the type mark, but not
eq?.
Back to Discussion of Exam2. On to Object Basics.
[Current]
[Discussions]
[Glance]
[Honesty]
[Instructions]
[Links]
[News]
[Search]
[Syllabus]
Primary
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Quizzes]
[Readings]
[Reference]
Sets
[Blackboard]
[Scheme Report]
[SamR's Schedule]
[Rebelsky/Fall 2000]
[Walker/Fall2000]
[Stone/Spring2000]
Links
Disclaimer: I usually create these pages on the fly. This means that they are rarely proofread and may contain bad grammar and incorrect details. It also means that I may update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.
This page was generated by Siteweaver on Wed May 5 12:15:14 2004.
This page may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2001S/outline.50.html.
You may validate
this page's HTML.
The source was last modified Tue Jan 23 16:01:59 2001.