September 22, 1999 | Strong Typing | Slide #35 |
Uses the very new pseudo-hash feature
Idea:
People use hashes for objects
Attributes looked up by key
This is inefficient
Have an array for efficiency
Look up attributes by number instead of by name
Hard to remember the numbers!
Compromise: First element of array is a hash that maps keys to indices
Conversion of keys to indices can be done at compile time
Next | Copyright © 1999 M-J. Dominus |