Lesson 24: Function Pointers and Types

Outline:

  1. Function pointers
    • syntax in C
    • example
  2. Evaluating primitive functions in Scheme
    • general approach
    • example: sqrt
    • functions vs. special forms
  3. 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:

  • Read the assigned readings (see below)
  • Finish P4, P5, and P6

Reading assignment (to be completed by the next class):

From today:

For next time:

  • Garbage collection – this is about C++, but mentally just replace new/delete with malloc/free as you read it