Some sort of OO
- Posted by jemima Sep 12, 2009
- 1187 views
I would like to gather some ideas about a specific part of this - dynamic lookup.
I suppose a related topic is how some other languages implement s["fred"] in a reasonably efficient manner.
So we want to implement O.print(), but there are dozens of print() methods this statement could be referring to - some builtin, some defined in classes, and all the inheritence handling you might expect.
Doubtless there are several ways, but which is the most efficient?