Lesson 24: Function Pointers and Types
Outline:
- Function pointers
- syntax in C
- example
- Evaluating primitive functions in Scheme
- general approach
- example: sqrt
- functions vs. special forms
- Types
What’s next
Upcoming events/assessments:
- Last CS Bits and Bytes Thursday at 3:30pm in Anderson 329
- Interpreter Part 4 cannot be resubmitted after Tuesday at 10pm
- Interpreter Part 5 cannot be resubmitted after Thursday at 10pm
- In-class work day on Friday – attendance counts towards engagement credits
- Last quiz next Monday
What you should do now:
Reading assignment (to be completed by the next class):
From today:
- Function pointers – this wasn’t a reading for before class, but may be handy
- Type systems
For next time:
- Garbage collection – this is about C++, but mentally just replace
new/deletewithmalloc/freeas you read it