September 22, 1999 Strong Typing Slide #3

Why Types?

Imagine an assembly language program

Stores a string More yummy eels, please into memory at locations 2001-2024

Later on, a mistake occurs

Locations 2012-2015 are loaded into a floating-point register and used as a floating-point number

What do you get when you interpret eels as a floating point number?

        1.87292264408661e+31

Whoops


Next Copyright © 1999 M-J. Dominus