Re: Re: Re: class proposal
"Mark Hahn" <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
Greg Ewing wrote: > I thought you were in favour of building more featureful systems > in terms of simpler ones. Isn't that just what you're proposing > to do by building classes on top of prototypes? Not really. The Class proposal isn't on top of prototypes as much as as beside them. If you read my latest proposal you will see the one hook needed to implement the new classes. >> The optimization I am planning of caching the prototype chain >> lookups needs to be at the heart of the interpreter. I could never >> do that if it was layered on top of some other interpreter. > > The code in Python which implements attribute lookup in the MRO is > written in C. It's not written in Python, if that's what you thought > Leonard meant. And there's no reason it couldn't maintain a cache if > it wanted to. The more I learn about Python's implementation the more I find out how similar it is to Prothon's.