Computer Science 433
Programming Languages
Fall 2014, The College of Saint Rose
Lecture 13: Names and Binding
Date: Wednesday, October 8, 2014
Agenda
- Announcements
- Hey, we don't have class on Monday!
- Midterm exam upcoming
- Exam in class October 20 with take home portion due October 22
- See practice exam handout for example problems, topics, and
exam format and ground rules
- Topics up to today's class are covered
- Q&A review time in class on Wednesday, October 15
- Names and Binding
Lecture 13 Assignment
Due at the start of class, Wednesday, October 15.
Please submit answers to these questions
in Submission
Box under "LA13" or in hard copy by the
start of our next class. We will discuss these questions at the
start of class, so no late submissions are accepted. Please be sure
that your name is clearly indicated in all submissions.
- Sebesta Problem Set Exercise 5, p. 236 (2 points)
- Sebesta Problem Set Exercise 6, p. 236-237 (6 points)
- Sebesta Problem Set Exercise 10, p. 238-239 (4 points)
Terminology
- keywords
- reserved words
- aliases
- binding: static and dynamic
- type inferencing
- strongly-typed language
- type checking
- type coercion
- type errors
- storage binding
- allocation and deallocation
- lifetime of a variable
- static, stack-dynamic, explicit heap-dynamic, implicit heap-dynamic allocation and deallocation
- run-time stack
- heap
- scope and visibility
- local, non-local, global variables
- scope rules: static/lexical vs. dynamic
Examples
Links