Some sort of OO

new topic     » topic index » view thread      » older message » newer message

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?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu